Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 396928 Details for
Bug 540160
dev-libs/libcgroup: Ebuild improvements
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cgred.conf-init-d.patch
cgred.conf-init-d.patch (text/plain), 2.41 KB, created by
tokiclover
on 2015-02-19 10:00:10 UTC
(
hide
)
Description:
cgred.conf-init-d.patch
Filename:
MIME Type:
Creator:
tokiclover
Created:
2015-02-19 10:00:10 UTC
Size:
2.41 KB
patch
obsolete
>diff --git a/dev-libs/libcgroup/files/cgred.confd b/dev-libs/libcgroup/files/cgred.confd >index 663ffc0..c10333a 100644 >--- a/dev-libs/libcgroup/files/cgred.confd >+++ b/dev-libs/libcgroup/files/cgred.confd >@@ -1,17 +1,5 @@ > # /etc/conf.d/cgred.conf: config file for /etc/init.d/cgred > >-# Uncomment the following line to log to specified file instead of syslog >-#LOG_FILE="/var/log/cgrulesengd.log" >- >-# Uncomment the second line to run CGroup Rules Engine in non-daemon mode >-#NODAEMON="" >-NODAEMON="--nodaemon" >- >-# Uncomment the second line to disable logging for CGroup Rules Engine >-# Uncomment the third line to enable more verbose logging. >-#LOG="" >-LOG="--nolog" >-#LOG="-v" >- >-# PID file >-PID_FILE=/var/run/cgred.pid >+# Options tp pass to cgrulesengd; >+# See the cgrulesengd(8) man page for more info. >+CGRED_OPTS="" >diff --git a/dev-libs/libcgroup/files/cgred.initd b/dev-libs/libcgroup/files/cgred.initd >index 9c14364..85cbb05 100644 >--- a/dev-libs/libcgroup/files/cgred.initd >+++ b/dev-libs/libcgroup/files/cgred.initd >@@ -1,41 +1,24 @@ > #!/sbin/runscript >-# >-# CGroups Rules Engine Daemon >-# >-# This is a daemon for automatically classifying processes into cgroups based >-# on UID/GID. >-# >-opts="${opts} reload" >+# Copyright 1999-2015 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+# $Header: /etc/init.d/cgred,v 1.1 2015/02/14 09:53:59 tokiclover Exp $ > >-CGRULESENGD="/usr/sbin/cgrulesengd" >-PID_FILE=${PID_FILE:-"/var/run/cgred.pid"} >+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() { >+depend() >+{ > need cgconfig > use logger > } > >-start() { >- local options="${NODAEMON} ${LOG}" >- if [[ -n "${LOG_FILE}" ]]; then >- options="${options} --log-file=${LOG_FILE}" >- fi >- >- ebegin "Starting CGroup Rules Engine Daemon" >- start-stop-daemon --start --pidfile "${PID_FILE}" --make-pidfile \ >- --background --exec "${CGRULESENGD}" -- ${options} >/dev/null >- eend $? >-} >- >-stop() { >- ebegin "Stopping CGroup Rules Engine Daemon" >- start-stop-daemon --stop --pidfile "${PID_FILE}" --exec "${CGRULESENGD}" >- eend $? >-} >- >-reload() { >+reload() >+{ > ebegin "Reloading CGroup Rules Engine Daemon" >- start-stop-daemon --stop --signal USR2 --oknodo --background \ >- --pidfile "${PID_FILE}" --make-pidfile --exec "${CGRULESENGD}" >+ kill -USR2 $(cat "${pidfile}") > eend $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 540160
:
396520
|
396730
|
396792
|
396804
|
396926
| 396928 |
396930
|
406828
|
406830