summaryrefslogtreecommitdiffstats
path: root/scripts/init.d/cgconfig.in
Commit message (Collapse)AuthorAgeFilesLines
* init script can miss default groupChris2010-03-111-1/+1
| | | | | | | | | | If there is a directive like *:httpd before * in the cgconfig file, all processes end up being moved into the wrong group on cgconfig startup, and the default group is never made. This fixes it for me: Signed-off-by: Chris Tasma <chris@deksai.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
* Clean up the init scriptdevel/config3Jan Safranek2009-12-221-18/+0
| | | | | | Some parts of the init script are not needed with the recent changes. Signed-off-by: Jan Safranek <jsafrane@redhat.com>
* Use tools instead of shell scriptsJan Safranek2009-12-221-28/+27
| | | | | | | | libcgroup now provides some tools, which can be used in the init script instead of bash code. Signed-off-by: Jan Safranek <jsafrane@redhat.com> Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
* Use cgclear on shutdownJan Safranek2009-12-221-39/+1
| | | | | | | | Use cgclear on service cgconfig stop, it's much faster than manual group removal. Signed-off-by: Jan Safranek <jsafrane@redhat.com> Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
* Don't create sysdefault group whent it's not neededJan Safranek2009-12-221-1/+9
| | | | | | | | | | | | | | | IMHO most of users don't need sysdefault group being created during boot - it's quite slow and at least in Fedora there is no application using it. So, let users to configure it and allow them to turn the sysdefault off. Whether the option should be enabled/disabled is distro-specific, we as libcgroup turn it on. Changelog: - create the sysdefault group by default Signed-off-by: Jan Safranek <jsafrane@redhat.com>
* Move sysdefault handling to separate functionJan Safranek2009-12-221-20/+24
| | | | | | | Move sysdefault handling to separate function - it simplifies following patch. Signed-off-by: Jan Safranek <jsafrane@redhat.com>
* Generate paths in initscripts by configure scriptJan Safranek2009-05-081-0/+248
Change the hardcoded paths in initscripts to dynamically generated ones. The real executable path $bindir can be constructed using $prefix and $exec_prefix variables, therefore it's necessary to define also these two. The patch includes removal of old initscripts from git - they are generated from .in file now. I did not run autoreconf, I think the generated junk is being removed from git soon. Signed-off-by: Jan Safranek <jsafrane@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>