7 OPTIONS
="$NODAEMON $LOG"
8 if [ -n "$LOG_FILE" ]; then
9 OPTIONS
="$OPTIONS --logfile=$LOG_FILE"
11 if [ -n "$SOCKET_USER" ]; then
12 OPTIONS
="$OPTIONS -u $SOCKET_USER"
14 if [ -n "$SOCKET_GROUP" ]; then
15 OPTIONS
="$OPTIONS -g $SOCKET_GROUP"
18 PID
=`pidof -o %PPID /sbin/cgrulesengd`
21 stat_busy
"Starting CGroups rules engine daemon"
22 if [ -z "$PID" ]; then
23 # Load Connector support
26 /sbin
/cgrulesengd
$OPTIONS
28 if [ ! -z "$PID" -o $?
-gt 0 ]; then
36 stat_busy
"Stopping CGroups rules engine daemon"
37 [ ! -z "$PID" ] && kill $PID &> /dev
/null
51 echo "usage: $0 {start|stop|restart}"