summaryrefslogtreecommitdiff
path: root/app-admin/supervisor/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/supervisor/files
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/supervisor/files')
-rw-r--r--app-admin/supervisor/files/conf.d4
-rw-r--r--app-admin/supervisor/files/init.d27
-rw-r--r--app-admin/supervisor/files/init.d-r112
3 files changed, 43 insertions, 0 deletions
diff --git a/app-admin/supervisor/files/conf.d b/app-admin/supervisor/files/conf.d
new file mode 100644
index 000000000000..922f4ce4132f
--- /dev/null
+++ b/app-admin/supervisor/files/conf.d
@@ -0,0 +1,4 @@
+# /etc/conf.d/supervisord
+
+# Options to pass to the supervisord process
+SUPD_OPTS=""
diff --git a/app-admin/supervisor/files/init.d b/app-admin/supervisor/files/init.d
new file mode 100644
index 000000000000..bf8d00c9517d
--- /dev/null
+++ b/app-admin/supervisor/files/init.d
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+checkconfig() {
+ if [ ! -f /etc/supervisord.conf ] ; then
+ eerror "Please create /etc/supervisord.conf:"
+ eerror "echo_supervisord_conf >> /etc/supervisord.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting supervisord"
+ start-stop-daemon --start \
+ --exec /usr/bin/supervisord -b --pidfile /var/run/supervisord.pid \
+ -- -n ${SUPD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping supervisord"
+ start-stop-daemon --stop --pidfile /var/run/supervisord.pid
+ eend $?
+}
diff --git a/app-admin/supervisor/files/init.d-r1 b/app-admin/supervisor/files/init.d-r1
new file mode 100644
index 000000000000..f22f49d54947
--- /dev/null
+++ b/app-admin/supervisor/files/init.d-r1
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems"
+
+command="/usr/bin/supervisord"
+pidfile="/var/run/supervisord.pid"
+command_args="--nodaemon --pidfile ${pidfile} ${SUPD_OPTS}"
+command_background="yes"
+
+required_files="/etc/supervisord.conf"