summaryrefslogtreecommitdiff
blob: 898c885985f4a73b26520ce7a32f52bcc3126a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

PID_DIR=/var/run/saku

depend() {
	use dns
	need net
}

start() {
	mkdir -p $PID_DIR
	rm -f ${PID_DIR}/pid.txt
	ebegin "Starting p2p bbs: saku"
	start-stop-daemon --start -u saku -g saku --quiet -b \
	    -p ${PID_DIR}/pid.txt --exec /usr/bin/saku
	eend $?
}

stop() {
	ebegin "Stopping p2p bbs: saku"
	start-stop-daemon --stop --quiet -p ${PID_DIR}/pid.txt
	eend $?
}