apkbuilds @ 121d6f029f4ebc205915bb5a0c74ecde7d874b32

 1#!/sbin/openrc-run
 2
 3depend() {
 4	need net
 5}
 6
 7start() {
 8	ebegin "Starting Seafile $instance instance"
 9	start-stop-daemon --chdir /var/lib/seafile/$instance --user $seafile_user \
10	    --group $seafile_group /usr/bin/seafile-admin start $seafile_opts
11}
12
13stop() {
14	ebegin "Stopping Seafile $instance instance"
15	start-stop-daemon --chdir /var/lib/seafile/$instance /usr/bin/seafile-admin stop
16}