Scrip d'init de base

De BlaxWiki
Aller à la navigationAller à la recherche
#!/bin/sh -e

#
# Start or stop cpop-ng.
#
# Installation : update-rc.d cpop-ng start 95 2 3 4 5 . stop 5 0 1 6 .


PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/local/sbin/cpop

case "$1" in
        start) $DAEMON start ;;
        stop) $DAEMON stop ;;
        restart) $DAEMON restart ;;
        check|status) $DAEMON status ;;
        force-reload|reload) $DAEMON restart ;;
        configcheck|configtest) $DAEMON configtest ;;
esac

exit 0