starting programs as a daemon
From: andy (andy_at_earthsong.free-online.co.uk)
Date: 01/11/05
- Next message: D. Rock: "Re: "Torn between two OS" - Solaris vs Linux"
- Previous message: John-Paul Stewart: "Re: "Torn between two OS" - Solaris vs Linux"
- Next in thread: andy: "Re: starting programs as a daemon"
- Reply: andy: "Re: starting programs as a daemon"
- Reply: mjt: "Re: starting programs as a daemon"
- Reply: Robert Billing: "Re: starting programs as a daemon"
- Reply: Peter T. Breuer: "Re: starting programs as a daemon"
- Reply: will kemp: "Re: starting programs as a daemon"
- Reply: Rich Daley: "Re: starting programs as a daemon"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 10 Jan 2005 23:29:05 +0000
Is there a standard way to start a program as a daemon from a script (with
init as parent process and no tty) which works in all linux distributions?
I've written an init script which starts several other programs. I'm
starting each program that's running in the background with nohup, which I
thought would stop it dying when the parent process exits, but this isn't
working.
E.g. if i run the script inside an xterm using 'xterm -e /init/script
restart', then kill the xterm, all the programs the script starts die as
well. This doesn't happen if I run it from a console then log out.
What I want is something I can use to start a program in the background
that will leave it running whatever happens to the process that started it.
I've looked through the man pages and I can't find anything that will do
this.
thanks, andy.
- Next message: D. Rock: "Re: "Torn between two OS" - Solaris vs Linux"
- Previous message: John-Paul Stewart: "Re: "Torn between two OS" - Solaris vs Linux"
- Next in thread: andy: "Re: starting programs as a daemon"
- Reply: andy: "Re: starting programs as a daemon"
- Reply: mjt: "Re: starting programs as a daemon"
- Reply: Robert Billing: "Re: starting programs as a daemon"
- Reply: Peter T. Breuer: "Re: starting programs as a daemon"
- Reply: will kemp: "Re: starting programs as a daemon"
- Reply: Rich Daley: "Re: starting programs as a daemon"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|