Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- DAEMON=/opt/connection_manager/bin/cmanager.sh
- NAME=ConMgr
- DESC="ConMgr"
- test -f $DAEMON || exit 0
- set -e
- case "$1" in
- start)
- start-stop-daemon --start --pidfile /var/run/$NAME.pid --exec $DAEMON
- ;;
- stop)
- start-stop-daemon --stop --pidfile /var/run/$NAME.pid
- ;;
- restart)
- start-stop-daemon --stop --pidfile /var/run/$NAME.pid
- sleep 1
- start-stop-daemon --start --pidfile /var/run/$NAME.pid --exec $DAEMON
- ;;
- *)
- N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart}" >&2
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement