Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 384418 Details for
Bug 522408
/etc/init.d/$foo status should not error for the normal user
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't apply cgroup settings when running only status or describe
runscript-status.diff (text/plain), 1.25 KB, created by
Roy Marples
on 2014-09-08 21:34:02 UTC
(
hide
)
Description:
Don't apply cgroup settings when running only status or describe
Filename:
MIME Type:
Creator:
Roy Marples
Created:
2014-09-08 21:34:02 UTC
Size:
1.25 KB
patch
obsolete
>--- runscript.sh.orig 2014-09-08 21:41:13.351207527 +0100 >+++ runscript.sh 2014-09-08 22:29:14.428521869 +0100 >@@ -205,16 +214,28 @@ > # Load any system overrides > sourcex -e "/etc/rc.conf" > >-# Apply any ulimit defined >-[ -n "${rc_ulimit:-$RC_ULIMIT}" ] && ulimit ${rc_ulimit:-$RC_ULIMIT} >- >-# Apply cgroups settings if defined >-if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]; then >- cgroup_add_service /sys/fs/cgroup/openrc >- cgroup_add_service /sys/fs/cgroup/systemd/system >-fi >-[ "$(command -v cgroup_set_limits)" = "cgroup_set_limits" ] && \ >- cgroup_set_limits >+for _cmd; do >+ if [ "$_cmd" != status -a "$_cmd" != describe ]; then >+ # Apply any ulimit defined >+ [ -n "${rc_ulimit:-$RC_ULIMIT}" ] && \ >+ ulimit ${rc_ulimit:-$RC_ULIMIT} >+ # Apply cgroups settings if defined >+ if [ "$(command -v cgroup_add_service)" = \ >+ "cgroup_add_service" ] >+ then >+ if [ -d /sys/fs/cgroup -a ! -w /sys/fs/cgroup ]; then >+ eerror "No permission to apply cgroup settings" >+ break >+ fi >+ cgroup_add_service /sys/fs/cgroup/openrc >+ cgroup_add_service /sys/fs/cgroup/systemd/system >+ fi >+ [ "$(command -v cgroup_set_limits)" = \ >+ "cgroup_set_limits" ] && \ >+ cgroup_set_limits >+ break >+ fi >+done > > # Load our script > sourcex "$RC_SERVICE"
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 522408
: 384418