aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/seafile/seafile.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/seafile/seafile.initd')
-rw-r--r--unmaintained/seafile/seafile.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/unmaintained/seafile/seafile.initd b/unmaintained/seafile/seafile.initd
new file mode 100644
index 0000000000..b92a7653ad
--- /dev/null
+++ b/unmaintained/seafile/seafile.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+
+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 $seafile_opts
+}
+
+stop() {
+ ebegin "Stopping Seafile $instance instance"
+ start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin stop
+}