mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-23 21:41:38 +02:00
20 lines
438 B
Plaintext
20 lines
438 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
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
|
|
}
|