[sip] Factorisation et mise au propre des scripts pour asterisk

This commit is contained in:
Valentin Samir 2013-06-16 21:58:47 +02:00
parent 9b5c5eb93d
commit 399bf75dbe
20 changed files with 475 additions and 201 deletions

28
sip/sms_queuing.init Executable file
View file

@ -0,0 +1,28 @@
#!/bin/bash
DAEMON="/usr/bin/python"
ARGS="/usr/scripts/sip/sms_queuing"
PIDFILE="/var/run/sms_queuing.pid"
USER="asterisk"
case "$1" in
start)
echo "Starting server"
/sbin/start-stop-daemon --start --pidfile $PIDFILE \
--user $USER --group $USER \
-b --make-pidfile \
--chuid $USER \
--exec $DAEMON $ARGS
;;
stop)
echo "Stopping server"
/sbin/start-stop-daemon --stop --pidfile $PIDFILE --verbose
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0