mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
24 lines
457 B
Plaintext
24 lines
457 B
Plaintext
#!/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 $?
|
|
}
|