summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bd0167d)
Changed files:
cvsd.init -> 1.2
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
- # nls "ERROR: Networking is down. %s can't be run." <service>
msg_network_down cvsd
exit 1
fi
msg_network_down cvsd
exit 1
fi
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/cvsd ]; then
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/cvsd ]; then
- # show "Starting %s service" cvsd
msg_starting cvsd
daemon cvsd -f /etc/cvsd/cvsd.conf
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cvsd
else
msg_starting cvsd
daemon cvsd -f /etc/cvsd/cvsd.conf
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cvsd
else
- # show "%s service is already running." cvsd
msg_already_running cvsd
fi
;;
stop)
if [ -f /var/lock/subsys/cvsd ]; then
# Stop daemons.
msg_already_running cvsd
fi
;;
stop)
if [ -f /var/lock/subsys/cvsd ]; then
# Stop daemons.
- # show "Stopping %s service" cvsd
msg_stopping cvsd
killproc cvsd
rm -f /var/lock/subsys/cvsd
else
msg_stopping cvsd
killproc cvsd
rm -f /var/lock/subsys/cvsd
else
- # show "%s service is not running." cvsd
msg_not_running cvsd
fi
;;
msg_not_running cvsd
fi
;;
- # show "Usage: %s {start|stop|restart|force-reload|status}"
msg_usage "$0 {start|stop|restart|force-reload|status}"
exit 3
esac
msg_usage "$0 {start|stop|restart|force-reload|status}"
exit 3
esac