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.
 The "standard" script for RHEL installations starts the daemon as "$BASE -C
$CONF $DAEMON pidfile $PIDFILE" - and now it seems that the "pidfile"
tags/designations are unrecognized.  I've commented it out, but have to ask
if this is correct?  The actual cherokee.pid still exists in the correct
designation (/var/run/cherokee.pid).

On a somewhat related note, I think the included startup script
(contrib/cherokee) calls start-stop-daemon, which isn't standard on RHEL
systems.

Thanks!

Kris Lou
[email protected]


#!/bin/sh
#
# Contrib to RedHat Fedora Based Systems by:
# chkconfig: 2345 95 05
# description: Starts and stops the Cherokee light Web Server system
#

# Source function library
. /etc/rc.d/init.d/functions

NAME=cherokee
BASE=/usr/sbin/$NAME
DAEMON="-d"
CONF="/etc/cherokee/cherokee.conf"
PIDFILE="/var/run/$NAME.pid"

# Check that $BASE exists.
[ -f $BASE ] || exit 0

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

RETVAL=0
# See how we were called.
case "$1" in
start)
if [ -n "`/sbin/pidof $NAME`" ]; then
echo -n $"$NAME: already running"
echo ""
exit $RETVAL
fi
echo -n "Starting Cherokee service: "
$BASE -C $CONF $DAEMON
#pidfile $PIDFILE
<-----------------------------------------------------------------------------Commented
out (and made newline)
sleep 1
action "" /sbin/pidof $NAME
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cherokee
;;
stop)
echo -n "Shutting down Cherokee service: "
killproc $BASE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cherokee
;;
restart|reload)
$0 stop
$0 start
RETVAL=$?
;;
status)
status $BASE
RETVAL=$?
;;
*)
echo "Usage: $NAME {start|stop|restart|reload|status}"
exit 1
esac

exit $RETVAL
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to