Ajout des services asterisk et sms_queuing
This commit is contained in:
parent
a510436220
commit
c23f5eb1e8
5 changed files with 53 additions and 0 deletions
6
Bundler/asterisk-server.xml
Normal file
6
Bundler/asterisk-server.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<Bundle name="asterisk-server">
|
||||
<Service name="asterisk" />
|
||||
<Package name="asterisk"/>
|
||||
<Path name="/etc/init.d/sms_queuing" />
|
||||
<Service name="sms_queuing" />
|
||||
</Bundle>
|
3
Cfg/etc/init.d/sms_queuing/info.xml
Normal file
3
Cfg/etc/init.d/sms_queuing/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner='root' group='root' mode='0755'/>
|
||||
</FileInfo>
|
36
Cfg/etc/init.d/sms_queuing/sms_queuing
Executable file
36
Cfg/etc/init.d/sms_queuing/sms_queuing
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
### BEGIN INIT INFO
|
||||
# Provides: sms_queuing
|
||||
# Required-Start: $remote_fs $syslog
|
||||
# Required-Stop: $remote_fs $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Asterisk sms delivery
|
||||
### END INIT INFO
|
||||
|
||||
DAEMON="/usr/scripts/sip/sms_queuing"
|
||||
ARGS=""
|
||||
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
|
||||
|
4
Rules/asterisk.xml
Normal file
4
Rules/asterisk.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!-- Règles pour asterisk //-->
|
||||
<Rules priority="1">
|
||||
<Service type="deb" name="asterisk" status="on"/>
|
||||
</Rules>
|
4
Rules/sms_queuing.xml
Normal file
4
Rules/sms_queuing.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!-- Règles pour asterisk //-->
|
||||
<Rules priority="1">
|
||||
<Service type="deb" name="sms_queuing" status="on"/>
|
||||
</Rules>
|
Loading…
Add table
Add a link
Reference in a new issue