# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= daemonize VERSION= 1.7.8 KEYWORDS= sysutils VARIANTS= standard SDESC[standard]= Tool to run a command as a daemon HOMEPAGE= http://software.clapper.org/daemonize/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= GITHUB/bmc:daemonize:release-1.7.8 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none USES= gmake LICENSE= MIT:single LICENSE_FILE= MIT:{{WRKSRC}}/LICENSE.md LICENSE_SCHEME= solo FPC_EQUIVALENT= sysutils/daemonize MUST_CONFIGURE= gnu do-install: ${INSTALL_PROGRAM} ${WRKSRC}/daemonize ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/daemonize.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 [FILE:1268:descriptions/desc.single] daemonize runs a command as a Unix daemon. As defined in W. Richard Stevens's 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: * Close all open file descriptors (especially standard input, standard output and standard error) * Change its working directory to the root filesystem, to ensure that it doesn't tie up another filesystem and prevent it from being unmounted * Reset its umask value * Run in the background (i.e., fork) * Disassociate from its process group (usually a shell), to insulate itself from signals (such as HUP) sent to the process group * Ignore all terminal I/O signals * Disassociate from control terminal (and take steps not to reacquire one) * Handle any SIGCLD signals 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 run as a true daemon. [FILE:113:distinfo] 20c4fc9925371d1ddf1b57947f8fb93e2036eb9ccc3b43a1e3678ea8471c4c60 66009 bmc-daemonize-release-1.7.8.tar.gz [FILE:44:manifests/plist.single] bin/daemonize share/man/man1/daemonize.1.gz