How can I get a daemon to successfully start from an rc script?

How can I get a daemon to successfully start from an rc script? Updated: 03/08/01


When /sbin/rc exits, all child processes, including daemons that have not
yet daemonized themselves (called setsid()), will be killed.

To ensure that a process is not killed, invoke it via nohup(1). This
will
work for all programs, not just daemons.

Another trick is to start the command via at(1), as follows:

/usr/bin/at now <<EoF
mydaemon
EoF



Home
FAQ