
On vire les dernières références à secrets.py via import direct de /etc/crans/secrets/secrets.py Ci-dessous une liste des trucs modifié et les raisons ./gestion/iscsi/nolslib.py:execfile("/etc/crans/secrets/nols.py") ./gestion/iscsi/slonlib.py:execfile("/etc/crans/secrets/slon.py") ./gestion/gen_confs/trigger.py:_args = ["ssh", "-4", "-i", "/etc/crans/secrets/trigger-generate" ] ./gestion/gen_confs/dhcpd_new.py: sys.path.append('/usr/scripts/gestion/secrets') ./gestion/gen_confs/dhcpd_new.py: from secrets import dhcp_omapi_keyname,dhcp_omapi_keys ./gestion/gen_confs/populate_sshFingerprint.py:sys.path.append('/etc/crans/secrets/') ./sip/sms_queuing:sys.path.insert(0, '/usr/scripts/gestion/secrets') ./sip/sms_queuing:from secrets import asterisk_sms_passwd ./sip/sip_multidial.py:sys.path.append('/etc/crans/secrets/') ./sip/sip_multidial.py:import secrets ./gestion/gen_confs/switchs.py: sys.path.append('/usr/scripts/gestion/secrets') ./gestion/gen_confs/switchs.py: from secrets import radius_key ./gestion/set_droits.sh: if [[ $1 = "$BASE/secrets" ]] ; then ./gestion/set_droits.sh: elif [[ $1 = "$BASE/secrets/secrets.py" ]] || [[ $1 = "$BASE/secrets/secrets.pyc" ]]; then ./admin/confmail/conf_mail.py:sys.path.append('/usr/scripts/gestion/secrets') ./admin/confmail/conf_mail.py:from secrets import secretConfirmMail
36 lines
769 B
Bash
Executable file
36 lines
769 B
Bash
Executable file
#!/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
|
|
|