@@ -87,7 +87,7 @@
startproc -f -p $CDEMUD_PIDFILE $CDEMUD_BIN $DAEMON_ARGS
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
- touch /var/lock/subsys/$servicename
+ touch /var/lock/subsys/cdemu-daemon
else
return $RETVAL
fi
@@ -119,7 +119,7 @@
fi
if [ $RETVAL -eq 0 ]; then
- rm -f /var/lock/subsys/$servicename
+ rm -f /var/lock/subsys/cdemu-daemon
fi
return $RETVAL
@@ -147,7 +147,7 @@
rc_status
;;
condrestart)
- if [ -f /var/lock/subsys/$servicename ]; then
+ if [ -f /var/lock/subsys/cdemu-daemon ]; then
echo "Stopping CDEmu daemon: "
stop
RETVAL=$?
|