On Thu, Feb 17, 2011 at 11:15, Kris Lou <[email protected]> wrote: > Hi all, > I've been running Cherokee on my CentOS installations for a while now - I > just upgraded to 1.0.20 from 1.0.15 and now my startup script doesn't work. ...
I've been having the same sort of problem on Ubuntu 10.04 as I reported in a previous email. Based on what Kris did, I started fooling around with the init.d script. I changed the start line in the /etc/init.d/cherokee script to read: start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON -- -d >>$LOG 2>> $LOG where LOG is defined in a line I added near the top of the script: LOG=/var/log/cherokee/cherokee.log The man page said the "-b" option to "start-stop-daemon" was not recommended. So I deleted it and added the cherokee "-d" option which backgrounds the daemon. Then the "--" arg is needed before the "-d" so it is recognized as an option to pass to the daemon. Lastly, I added the redirection to stderr and stdout to a log file (that can be donw more elegantly but I can't ever remember how to do it). It all seems to work for now. Best regards, -Tom Thomas M. Browder, Jr. Niceville, Florida USA _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
