[BusyBox] how to automatically start an app at boot time?

Vladimir N. Oleynik dzo at simtreas.ru
Tue Jan 20 16:28:14 UTC 2004


Gyepi,

>>so what does it mean to "daemonize" an app?  i mean, beyond some
>>fairly obvious steps, is there a technical meaning to the phrase
>>"daemonize" here?
> 
> 
> Quoting and paraphrasing from Stevens' APUE
> 
> In order to daemonize, an app must:
> 
> 1. (a) become the session leader of a new session, (b) become the process
> group leader of a new process group and (c) not have a controlling terminal.
> 
> This basically means fork [twice, to maintain portability] and call setsid().

For shell`s daemons: use "nohup".
This applet block SIGHUP and reduce up effects. ;-)


--w
vodz




More information about the busybox mailing list