Changed files:
distcc.init -> 1.4
OPTION1="--daemon"
-
+RETVAL=0
# See how we were called.
case "$1" in
start)
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/distccd
else
msg_already_running distccd
- exit 1
fi
;;
stop)
if [ -f /var/lock/subsys/distccd ]; then
msg_stopping distccd
killproc distccd
- RETVAL=$?
rm -f /var/run/distccd.pid /var/lock/subsys/distccd >/dev/null 2>&1
else
msg_not_running distccd
- exit 1
fi
;;
restart)
$0 stop
$0 start
+ exit $?
;;
status)
status distccd
RETVAL=$?
else
msg_not_running distccd
- exit 1
+ exit 7
fi
;;
*)
msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
- exit 1
+ exit 3
esac
exit $RETVAL