>>>>> "James" == James Sadler <freshto...@gmail.com> 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.

--
Dr Peter Chubb                                  peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au               ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to