This patch fixes init script to use -f and -d options for cgcreate when it 
creates
sysdefault control groups

Signed-off-by: Ivana Hutarova Varekova<[email protected]>
---

 scripts/init.d/cgconfig.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in
index 773df8a..43b8647 100644
--- a/scripts/init.d/cgconfig.in
+++ b/scripts/init.d/cgconfig.in
@@ -84,7 +84,7 @@ create_default_groups() {
         # Create the default group, ignore errors when the default group
         # already exists.
         #
-        cgcreate -g $controllers:$defaultcgroup 2>/dev/null
+        cgcreate -f 755 -d 755 -g $controllers:$defaultcgroup 2>/dev/null
 
         #
         # special rule for cpusets


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to