blob: e7011aef3f1277b07355a8252aafc961c7bdf046 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/supervisord: start/stop supervisor daemon
4 #
5
6 case $1 in
7 start)
8 /usr/bin/supervisord -c /etc/supervisord.conf
9 ;;
10 stop)
11 if [ -f /var/run/supervisord.pid ]; then
12 kill $(< /var/run/supervisord.pid)
13 rm -f /var/run/supervisord.pid
14 else
15 killall -q /usr/bin/supervisord
16 fi
17 ;;
18 restart)
19 $0 stop
20 sleep 2
21 $0 start
22 ;;
23 *)
24 echo "usage: $0 [start|stop|restart]"
25 ;;
26 esac
27
28 # End of file
|