On 21 May 2010 10:34, Peter Chubb <[email protected]> wrote: >>>>>> "James" == James Sadler <[email protected]> writes: > > >>> >>> If you add a --background argument to start-stop-daemon, it'll do >>> the daemonification for you, but then you lose startup checks. > > James> Can you clarify what you mean by 'losing startup checks'? > > > Typcially, a daemon will do some checks at startup time -- for > example, will not call daemonify() until *after* parsing a config > file, and checking it has the right privileges. It'll call > exit(EXIT_FAILURE) (or similar) if these startup checks fail. > > start-stop-daemon logs an error in the normal case if it fails to > start a daemon. (basically all it does is invoke the program then > wait for it; if it has a zero exit code it assumes the daemon started > correctly, otherwise not) > > With --background, start-stop-deamin doesn't wait, so any errors > detected by the process will not be reported. >
Right, understood. Thanks again for your help. -- James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
