buildrootschalter/package/supervisor/S99supervisord
Jonathan Liu 380ff787d9 supervisor: new package
[thomas.petazzoni@free-electrons.com:
 Fixup indentation of Config.in file.
 Add 'depends on BR2_PACKAGE_PYTHON' so that the package does not
 appear when the Python interpreter is not enabled.
 Add license files information, but not the license tag: the package
 includes software under multiple licenses.]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2012-08-11 22:59:12 +02:00

30 lines
512 B
Bash
Executable File

#!/bin/sh
mkdir -p /var/log/supervisor
case "$1" in
start)
echo -n "Starting supervisord: "
start-stop-daemon -S -q -p /var/run/supervisord.pid --exec /usr/bin/supervisord
echo "done"
;;
stop)
echo -n "Stopping supervisord: "
start-stop-daemon -K -q -p /var/run/supervisord.pid
echo "done"
;;
restart)
"$0" stop
sleep 5
"$0" start
;;
reload)
start-stop-daemon -K -q -p /var/run/supervisord.pid -s HUP
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
exit $?