On Sun, Jan 06, 2013 at 02:10:43AM -0800, - - wrote: > Hello, > > I am trying to write an init script for cherokee webserver. Not, there is already one, but I wanted to have one derived from skeleton. > > > > In function "do_stop()" the script executes this line: > "start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME" Right, I believe that this will find a process with the name $NAME and the pid specified in $PIDFILE and then send SIGTERM to that process, wait 30 seconds, then SIGKILL and wait 5 seconds (if the process stops within that 35 seconds, that's good, otherwise s-s-d will return 2). So, probably the first thing to check is that $PIDFILE and $NAME have the values you want and that $PIDFILE exists and has a pid stored in it. > > But nothing happens. I get exit code 1, which means that the daemon was already stopped. But that is not true. The daemon was still running and not cherokee, nor it's subprocesses were stopped. > > Am I doing something wrong here? > > THanks > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org > Archive: [🔎] 1357467043.90187.YahooMailNeo@web140506.mail.bf1.yahoo.com">http://lists.debian.org/[🔎] 1357467043.90187.YahooMailNeo@web140506.mail.bf1.yahoo.com >
Attachment:
signature.asc
Description: Digital signature