summaryrefslogtreecommitdiffstats
path: root/main/seafile/seafile.initd
blob: ba13650233d4dddf24add3e6bbd6de43ee855015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/runscript

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
}