From 380ff787d95f9fa36a73503fd3ac6d5c40a5e6bc Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Sat, 11 Aug 2012 17:12:06 +1000 Subject: 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 Signed-off-by: Thomas Petazzoni --- package/supervisor/S99supervisord | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 package/supervisor/S99supervisord (limited to 'package/supervisor/S99supervisord') diff --git a/package/supervisor/S99supervisord b/package/supervisor/S99supervisord new file mode 100755 index 000000000..0856d65a5 --- /dev/null +++ b/package/supervisor/S99supervisord @@ -0,0 +1,29 @@ +#!/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 $? -- cgit v1.2.3