Home Code Other Software

Table of Contents


daemonize runs a command as a Unix daemon. As defined in W. Richard Stevens’ 1990 book, UNIX Network Programming (Addison-Wesley, 1990), a daemon is “a process that executes ‘in the background’ (i.e., without an associated terminal or login shell) either waiting for some event to occur, or waiting to perform some specified task on a periodic basis.” Upon startup, a typical daemon program will:

Most programs that are designed to be run as daemons do that work for themselves. However, you’ll occasionally run across one that does not. When you must run a daemon program that does not properly make itself into a true Unix daemon, you can use daemonize to force it to run as a true daemon.

See the man page for full details.


Getting daemonize

daemonize is written in C. Given the number of Unix-like operating systems, and the number of releases of each, it is impractical for me to provide binaries of daemonize for every combination of Unix-like operating system and operating system release. So, currently, you must build daemonize from source code, as described below.

There are two ways to get the source code:


Once you’ve unpacked the source, change your working directory to the daemonize directory. From there, building and installing the code is fairly typical:

$ sh configure
$ make
$ sudo make install

For a detailed report of the available configure options:

$ sh configure --help


I have personally compiled and tested daemonize on the following platforms:

The accompanying “configure” script was generated with GNU autoconf version 2.1.3. It should work, as is, for most Unix systems.

Change Log

See the daemonize Change Log for a description of the changes in each version.


Brian Clapper, bmc@clapper.org

Web Page


With the exception of the install-sh script and the getopt.c source, this software is released under BSD license. See the license for details.

With the exception of the “install-sh” script and the “getopt.c” source, this software is copyright 2003-2010, Brian M. Clapper


I gladly accept patches from their original authors. Feel free to email patches to me or to fork the GitHub repository and send me a pull request. Along with any patch you send:

当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
若有不妥, 欢迎评注提醒:


订阅 substack 体验古早写作:

点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

关注公众号, 持续获得相关各种嗯哼:


关于 ~ DebugUself with DAMA ;-)
公安备案号: 44049002000656 ...::