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

start() {
	ebegin "Starting heyu"
	start-stop-daemon --start --quiet --exec /usr/bin/heyu --chuid heyu:heyu -- start >/dev/null
	eend $?
}

stop() {
	ebegin "Stopping heyu"
	start-stop-daemon --stop --quiet --exec /usr/bin/heyu
	eend $?
}

restart() {
	svc_stop
	sleep 5
	svc_start
}