From bd40d543bcea6700c99518d1dda8e9c82e3449bf Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 31 Oct 2014 11:50:35 +0100 Subject: testing/seafile: move seafile and deps to main --- main/seahub/seahub.initd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main/seahub/seahub.initd (limited to 'main/seahub/seahub.initd') diff --git a/main/seahub/seahub.initd b/main/seahub/seahub.initd new file mode 100644 index 0000000000..cfb5df5692 --- /dev/null +++ b/main/seahub/seahub.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript + +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