General note on rc scripts and daemonizing
Anonymous
swell.k at gmail.com
Sun Jul 18 04:24:37 UTC 2010
jhell <jhell at DataIX.net> writes:
> Also another use with the case above. Running top(1) instead of su(1)
> you should see the same symptoms.
>
Use `-f' option in daemon(8). Otherwise it'd still spam to tty.
$ daemon top
$ procstat -f $(pgrep top)
PID COMM FD T V FLAGS REF OFFSET PRO NAME
36719 top cwd v d -------- - - - /home/blah
36719 top root v d -------- - - - /
36719 top 0 v c rw------ 9 686053 - /dev/pts/3
36719 top 1 v c rw------ 9 686053 - /dev/pts/3
36719 top 2 v c rw------ 9 686053 - /dev/pts/3
36719 top 3 v c r------- 1 0 - /dev/null
36719 top 4 v c r------- 1 0 - /dev/null
> I should probably also state that using the -f flag to ssh(1) without
> daemon(1) does not exhibit any of these symptoms.
More information about the freebsd-ports
mailing list