diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 13:38:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 13:38:42 +0000 |
commit | edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93 (patch) | |
tree | f17b6ac796d464a759e5ddb6e5eb3a64327d4c4f /community/seafile/seafile.initd | |
parent | bf4cf79b81f0ddb0c7c95b8d791ec48a2698f692 (diff) | |
download | aports-edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93.tar.bz2 aports-edcd2fc03278ac8ff6c3cb1c98e33805ada8ce93.tar.xz |
community/seafile (and deps): move from main
Diffstat (limited to 'community/seafile/seafile.initd')
-rw-r--r-- | community/seafile/seafile.initd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/seafile/seafile.initd b/community/seafile/seafile.initd new file mode 100644 index 0000000000..b92a7653ad --- /dev/null +++ b/community/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 +} |