summaryrefslogtreecommitdiff
blob: bd3d72b39548804c111760777bf6c909ba7a2843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/runscript

depend() {
	need clock hostname net
}

start() {
	export mh_parms="/etc/conf.d/misterhouse"
	ebegin "Starting misterhouse"
        start-stop-daemon --start --background --exec /opt/misterhouse/bin/mh -- -log_file="/var/log/misterhouse.log"
	eend $? "Failed to start misterhouse"
}

stop() {
	ebegin "Stopping misterhouse"
	start-stop-daemon --stop --quiet --pidfile /var/run/misterhouse.pid
	eend $? "Failed to stop misterhouse"
}