From c692cb66623d99edfc727e79d58a34178c950037 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 14 Nov 2017 01:37:14 +0100 Subject: unmaintained/seahub: move from testing This package is disabled for quite a long time. --- unmaintained/seahub/seahub.initd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 unmaintained/seahub/seahub.initd (limited to 'unmaintained/seahub/seahub.initd') diff --git a/unmaintained/seahub/seahub.initd b/unmaintained/seahub/seahub.initd new file mode 100644 index 0000000000..faee878e3b --- /dev/null +++ b/unmaintained/seahub/seahub.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +export SEAHUB_LOG_DIR=/var/lib/seafile/$instance/logs + +depend() { + need net +} + +start() { + ebegin "Starting Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \ + --group $seafile_group /usr/bin/seafile-admin start +} + +stop() { + ebegin "Stopping Seafile $instance instance" + start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin \ + stop +} -- cgit v1.2.3