rendered paste body+ LD_LIBRARY_PATH=/usr/local/lib
+ PATH=/home/sswitch/dist/usr/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ NAME=asterisk
+ USER=asterisk
+ GROUP=asterisk
+ DAEMON=/home/sswitch/dist/usr/sbin/asterisk
+ DESC=Asterisk PBX
+ PIDFILE=/home/sswitch/dist/var/run/asterisk/asterisk.pid
+ ASTSAFE_PIDFILE=/home/sswitch/dist/var/run/asterisk/asterisk_safe.pid
+ UMASK=007
+ MONIT=/home/sswitch/dist/bin/monit
+ MONITRC=/home/sswitch/dist/etc/monit/monitrc
+ PARAMS=
+ AST_REALTIME=no
+ RUNASTERISK=yes
+ '[' -r /etc/default/asterisk ']'
+ '[' yes '!=' yes ']'
+ '[' no '!=' no ']'
+ '[' xasterisk = x ']'
++ id -u asterisk
+ '[' 1000 = 0 ']'
+ PARAMS= -U asterisk
+ '[' x = x ']'
+ AST_DEBUG_PARAMS=-cvvvvvddddd
+ '[' '' = yes ']'
+ REALDAEMON=/home/sswitch/dist/usr/sbin/asterisk
+ test -x /home/sswitch/dist/usr/sbin/asterisk
+ set -e
+ '[' 007 '!=' '' ']'
+ umask 007
+ asterisk_stop
+ echo -n 'Stopping Asterisk PBX: '
Stopping Asterisk PBX: + '[' '' = yes ']'
+ /home/sswitch/dist/usr/sbin/asterisk -rx 'stop now'
+ echo -n asterisk
asterisk+ '[' '' = yes ']'
+ start-stop-daemon --stop --quiet --oknodo --retry=0/2/TERM/2/KILL/5 --exec /home/sswitch/dist/usr/sbin/asterisk
+ echo .
.
+ sleep 2
+ asterisk_start
+ status
++ ps auxw
++ grep /home/sswitch/dist/usr/sbin/asterisk
++ grep -v grep
++ awk '{print $2}'
++ tr '\012' ' '
+ plist=
+ '[' '' = '' ']'
+ echo 'Asterisk PBX is stopped'
+ return 1
+ echo -n 'Starting Asterisk PBX: '
Starting Asterisk PBX: + '[' '' '!=' yes ']'
+ status
++ ps auxw
++ grep /home/sswitch/dist/usr/sbin/asterisk
++ grep -v grep
++ awk '{print $2}'
++ tr '\012' ' '
+ plist=
+ '[' '' = '' ']'
+ echo 'Asterisk PBX is stopped'
+ return 1
+ start-stop-daemon --start --group asterisk --pidfile /home/sswitch/dist/var/run/asterisk/asterisk.pid --exec /home/sswitch/dist/usr/sbin/as terisk -- -U asterisk
+ echo asterisk.
asterisk.
+ exit 0