This commit is contained in:
ziggi
2017-12-10 20:11:06 +00:00
commit a5cb8fbf18
100 changed files with 95135 additions and 0 deletions

36
init.d/maacom Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
set -e
NAME=maacom
PIDFILE=/var/run/maacom/$NAME.pid
DAEMON=/usr/local/sbin/maacom
DAEMON_OPTS=""
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
case "$1" in
start)
echo -n "Starting daemon: "$NAME
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
stop)
echo -n "Stopping daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
echo "."
;;
restart)
echo -n "Restarting daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
*)
echo "Usage: "$1" {start|stop|restart}"
exit 1
esac
exit 0
#EOF

36
init.d/maacom.in Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
set -e
NAME=maacom
PIDFILE=@APP_RUNDIR@/$NAME.pid
DAEMON=@prefix@/sbin/maacom
DAEMON_OPTS=""
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
case "$1" in
start)
echo -n "Starting daemon: "$NAME
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
stop)
echo -n "Stopping daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
echo "."
;;
restart)
echo -n "Restarting daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
*)
echo "Usage: "$1" {start|stop|restart}"
exit 1
esac
exit 0
#EOF