aboutsummaryrefslogtreecommitdiffstats
path: root/main/seahub/seahub.initd
blob: faee878e3b68b720acf70f65e40a3102d5f8b621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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
}