Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.29 How come I can't start my Aserver?"
Next document is "7.31 How come my /dev/null keeps getting blown away?"
7.30 How can I get a daemon to successfully start from /etc/rc at 9.x?
A) /etc/rc will kill all child processes on exit; daemons started from
localrc() (for example) must have called setsid() and have been
given time to daemonize (what a word!) themselves.
If your system doesn't have the C compiler you can use a call to nohup to
start the daemon instead of calling setsid().
B) Another trick that works is to include the following command in the rc file:
/usr/bin/at now + 1 minute < /etc/rc.at
Then create a file named /etc/rc.at, which should contain the command to
start the daemon. Your daemon will start 1 minute after the rc file
calls the command. You can use times other than 1 minute.
(thanks to Mike Peterson, <system@alchemy.chem.utoronto.ca>, and
Noel Hunter <noel@wfu.edu>)
Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.29 How come I can't start my Aserver?"
Next document is "7.31 How come my /dev/null keeps getting blown away?"