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}