Ravenports generated: 15 Nov 2023 14:11
[ravenports.git] / bucket_3E / daemonize
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               daemonize
4 VERSION=                1.7.8
5 KEYWORDS=               sysutils
6 VARIANTS=               standard
7 SDESC[standard]=        Tool to run a command as a daemon
8 HOMEPAGE=               http://software.clapper.org/daemonize/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/bmc:daemonize:release-1.7.8
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   gmake
21
22 LICENSE=                MIT:single
23 LICENSE_FILE=           MIT:{{WRKSRC}}/LICENSE.md
24 LICENSE_SCHEME=         solo
25
26 FPC_EQUIVALENT=         sysutils/daemonize
27
28 MUST_CONFIGURE=         gnu
29
30 do-install:
31         ${INSTALL_PROGRAM} ${WRKSRC}/daemonize ${STAGEDIR}${PREFIX}/bin
32         ${INSTALL_MAN} ${WRKSRC}/daemonize.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
33
34 [FILE:1268:descriptions/desc.single]
35 daemonize runs a command as a Unix daemon. As defined in W. Richard
36 Stevens's 1990 book, UNIX Network Programming (Addison-Wesley, 1990), a
37 daemon is "a process that executes 'in the background' (i.e., without an
38 associated terminal or login shell) either waiting for some event to
39 occur, or waiting to perform some specified task on a periodic basis."
40 Upon startup, a typical daemon program will:
41
42  * Close all open file descriptors (especially standard input, standard
43    output and standard error)
44  * Change its working directory to the root filesystem, to ensure that
45    it doesn't tie up another filesystem and prevent it from being unmounted
46  * Reset its umask value
47  * Run in the background (i.e., fork)
48  * Disassociate from its process group (usually a shell), to insulate
49    itself from signals (such as HUP) sent to the process group
50  * Ignore all terminal I/O signals
51  * Disassociate from control terminal (and take steps not to reacquire one)
52  * Handle any SIGCLD signals
53
54 Most programs that are designed to be run as daemons do that work for
55 themselves. However, you'll occasionally run across one that does not.
56 When you must run a daemon program that does not properly make itself into
57 a true Unix daemon, you can use daemonize to run as a true daemon.
58
59
60 [FILE:113:distinfo]
61 20c4fc9925371d1ddf1b57947f8fb93e2036eb9ccc3b43a1e3678ea8471c4c60        66009 bmc-daemonize-release-1.7.8.tar.gz
62
63
64 [FILE:44:manifests/plist.single]
65 bin/daemonize
66 share/man/man1/daemonize.1.gz
67