diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-14 01:37:14 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-14 01:37:14 +0100 |
commit | c692cb66623d99edfc727e79d58a34178c950037 (patch) | |
tree | 918f879598de324f6b44793ff5a67a9fc6f40cc2 /unmaintained/seahub/seahub.initd | |
parent | d3c4ea88b13c42aae893bac0ca287fbd8dbc7983 (diff) | |
download | aports-c692cb66623d99edfc727e79d58a34178c950037.tar.bz2 aports-c692cb66623d99edfc727e79d58a34178c950037.tar.xz |
unmaintained/seahub: move from testing
This package is disabled for quite a long time.
Diffstat (limited to 'unmaintained/seahub/seahub.initd')
-rw-r--r-- | unmaintained/seahub/seahub.initd | 19 |
1 files changed, 19 insertions, 0 deletions
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 +} |