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

command="/usr/sbin/cgrulesengd"
command_args="${CGRED_OPTS}"
command_background="1"
pidfile="/var/run/cgred.pid"
description="CGroups Rules Engine Daemon"
extra_started_commands="reload"

depend()
{
	need cgconfig
	use logger
}

reload()
{
	ebegin "Reloading CGroup Rules Engine Daemon"
	kill -USR2 $(cat "${pidfile}")
	eend $?
}