aboutsummaryrefslogtreecommitdiff
path: root/seafile/seafile.initd
diff options
context:
space:
mode:
Diffstat (limited to 'seafile/seafile.initd')
-rw-r--r--seafile/seafile.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/seafile/seafile.initd b/seafile/seafile.initd
new file mode 100644
index 0000000..b92a765
--- /dev/null
+++ b/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
+}