Re: Can't Detach from a startup script
- From: Kent West <westk@xxxxxxx>
- Date: Sun, 31 Aug 2008 08:02:43 -0500
Martin wrote:
On Sat, Aug 30, 2008 at 5:56 AM, Kent West <westk@xxxxxxx> wrote:
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec
$DAEMON -- $OPT \
> /dev/null
hmm looks to my that either you missed the --background option for
start-stop-daemon or you missed the option for $DAEMON to send it to
background...
I see from the start-stop-daemon man page that I might can throw in a "-b" to force a detachment, but is that the correct way to fix my problem? The man page suggests that this should be a last resort.
So you're suggesting that I DO use the -b (or --background) option, that this is the correct fix for my problem?
I did add that in, and now I can exit out of my ssh session after starting the daemon, but as I say, since the man page says that's a last resort, I wasn't sure I should do that. (And I haven't tried to see if a "restart" or "stop" works properly from my script with that added in.)
Thanks!
--
Kent West <")))><
Westing Peacefully - http://kentwest.blogspot.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- Can't Detach from a startup script
- From: Kent West
- Re: Can't Detach from a startup script
- From: Martin
- Can't Detach from a startup script
- Prev by Date: Re: Sound volume user specific?
- Next by Date: Installing experimental xorg to get smooth image scaling in iceweasel
- Previous by thread: Re: Can't Detach from a startup script
- Next by thread: modprobe snd-cs46xx error ALSA 1.0.17 with kernel 2.6.26-1-686
- Index(es):
Relevant Pages
|