summaryrefslogtreecommitdiff
blob: beff8304b7011c4ae6ffc7d1e07821e33eefe88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

start() {
	local pidfile=/run/poolmon.pid
	ebegin "Starting poolmon"
	start-stop-daemon --pidfile "${pidfile}" --exec /usr/bin/poolmon -- ${OPTIONS}
	eend $?
}

stop() {
	local pidfile=/run/poolmon.pid
	ebegin "Stopping poolmon"
	start-stop-daemon --stop --pidfile "${pidfile}"
	eend $?
}