summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Generate everythingautomakeJan Safranek2009-03-261-0/+327
| | | | | | Finally run autoreconf -f -i to generate all the stuff that should be generated Signed-off-by: Jan Safranek <jsafrane@redhat.com>
* Add automake makefilesJan Safranek2009-03-261-0/+1
| | | | | | | | Add automake makefiles and prepare everything to run, but don't actually run the automake - it would generate lot of noise, where my manual changes would get lots. Signed-off-by: Jan Safranek <jsafrane@redhat.com>
* Clean up the scripts directoryJan Safranek2009-03-269-458/+0
| | | | | | | | The directory contains samples and howto, which is not relevant anymore. Sample configuration files should be in ../samples and (relevant) documentation in ../doc Signed-off-by: Jan Safranek <jsafrane@redhat.com>
* Minor fix to cgconfig init scriptIvana Varekova2009-03-261-0/+5
| | | | | | | | | | | | | | cgconfig script does not test the return value of cgconfigparser command so it continues to simulate start of the service, even if it was not pass successfuly. This is the first part of the patch from: http://sourceforge.net/mailarchive/forum.php?thread_name=20090120121851.GC4422%40linux.vnet.ibm.com&forum_name=libcg-devel which was not incorporated yet. Signed-off-by: Ivana Varekova <varekova@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
* Start the config earlierJan Safranek2009-03-091-3/+3
| | | | | | | | | | We could start cgconfig service earlier, even before network and syslog. $local_fs is not needed, because /bin, /sbin and /etc are guaranteed by rc.sysinit (see Fedora bug #309001, https://bugzilla.redhat.com/show_bug.cgi?id=309001). Signed-off-by: Jan Safranek <jsafrane@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
* libcgroup: Dont check for success of moved tasksDhaval Giani2009-03-041-1/+1
| | | | | | | | | | | | | | | | Sometime the movement of tasks in the default cgroup can fail for various reasons. Therefore, do not check for the success of the movement of tasks. Justification: These are generally for cgroups which need some special setup, for example the RT group scheduler. This is not handled by the library whihc is generic. If a user is intersted in these working, they will setup a default cgroup in the config files whihc handle everything they need. Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> Tested-by: Jan Safranek <jsafrane@redhat.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
* bcgroup: Rename 'flash' to 'reload'Dhaval Giani2009-02-261-2/+2
| | | | | | | | | | | | | | LSB specifies that 'reload' is the right initscript parameter to stimulate daemon to reread its configuration file. I let the 'flash' still working, in case somebody is used to it, but do not advertise it anywhere. Signed-off-by: Jan Safranek <jsafrane@redhat.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@352 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Start cgred service after cgconfigDhaval Giani2009-02-261-1/+1
| | | | | | | | | | | | | From: Jan Safranek <jsafrane@redhat.com> cgred should start after cgconfig service Signed-off-by: Jan Safranek <jsafrane@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@351 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* From: Ivana Varekova <varekova@redhat.com>Balbir Singh2009-02-232-6/+2
| | | | | | | | | | | | | This patch fixes spec file handling of daemon parts of libcg (add chkconfig to post and including dependency, fix preun script). And fix the levels in which is this daemon start by default (should not be any). Signed-off-by: Ivana Varekova <varekova@redhat.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@338 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* From: Ivana Varekova <varekova@redhat.com>Balbir Singh2009-02-231-2/+2
| | | | | | | | | | | | | | | | | | This patch changes cgconfig.conf - comment all rows and rename example values - to have example which should be installed to /etc/. Move cgred to /etc/sysconfig and patch spec to install all /etc/* configuration files (at least they shows examples and help to user to do their own configuration).). Signed-off-by: Ivana Varekova <varekova@redhat.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> NOTE: The spec file is still broken due to lack of packaging of pam_cgroup.so. git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@337 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Add new command line options to sample config fileDhaval Giani2009-02-121-1/+4
| | | | | | | | | | | | | From: Jan Safranek <jsafrane@redhat.com> Add new command line options to sample config file Signed-off-by: Jan Safranek <jsafrane@redhat.com> Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@322 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Add default group to cgconfigDhaval Giani2008-12-161-1/+1
| | | | | | | | | | | | | | | | | | | From: Balbir Singh <balbir@linux.vnet.ibm.com> As discussed in the previous thread http://article.gmane.org/gmane.comp.lib.libcg.devel/139, we don't have the concept of default groups and tasks should be able to return back to their default group when done. Here is a fix to the cgconfig script to fix the issue. Please review, comment on it. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@238 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Fix broken cgredDhaval Giani2008-12-161-4/+3
| | | | | | | | | | | | | | | | | From: Balbir Singh <balbir@linux.vnet.ibm.com> cgred is broken, in that there are some checks that fail and we use --config to start the daemon and that is not supported. We also use -12 as the signal to killproc. This patch fixes all of those issues Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@237 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Add default group to cgconfigDhaval Giani2008-12-161-0/+50
| | | | | | | | | | | | | | | | | | | From: Balbir Singh <balbir@linux.vnet.ibm.com> As discussed in the previous thread http://article.gmane.org/gmane.comp.lib.libcg.devel/139, we don't have the concept of default groups and tasks should be able to return back to their default group when done. Here is a fix to the cgconfig script to fix the issue. Please review, comment on it. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@236 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Merge several bug-fixes and cleanups. No version bump yet, since this isBalbir Singh2008-10-152-9/+29
| | | | | | | | | | an ongoing exercise (after more testing, I'll recommend one). Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@216 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Merge the cgruleseng daemon from Steve OlivieriBalbir Singh2008-09-261-0/+129
| | | | | | | | | | Signed-off-by: Steve Olivieri <sjo@redhat.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@190 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Add up missing scripts/samplesDhaval Giani2008-08-154-0/+209
| | | | | | | | | | | | | From: Balbir Singh <balbir@linux.vnet.ibm.com> Dhaval missed a few files while adding files to the reporsitory. Adding them in now. Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@158 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* libcgroup: Configuration and parsing updates (v2)Dhaval Giani2008-08-131-5/+5
| | | | | | | | | | | | | | | | | | | | | Dhaval, wanted a patch with -p1 generated so that he can apply it and use it with quilt. Here goes Testing Tested with samples/cgconfig.conf (NOTE: expects user balbir to be present on the system, feel free to change and test). TODO 1. Add hooks for other controllers, namely memory, cpuacct and cpuset Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@134 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Add v0.1b tagBalbir Singh2008-05-241-0/+14
| | | | git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@49 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Implement multiple mount point supportBalbir Singh2008-05-171-85/+117
| | | | | | | | Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@29 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Miscellaneous scripts and libcg bug fixesBalbir Singh2008-04-181-0/+14
| | | | | | | | | | | | Turn off -DDEBUG in Makefile Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@18 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Fixed an initscripts problem. Comments were not ignored in the secondBalbir Singh2008-04-161-31/+34
| | | | | | | | | | | | | | level configuration file (i.e. cpu.conf) wlm | 65 ++++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 34 insertions(+), 31 deletions(-) Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@16 4f4bb910-9a46-0410-90c8-c897d4f1cd53
* Add init scripts and a README. NOTE: These init scripts will changeBalbir Singh2008-04-145-0/+349
frequently and drastically. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@14 4f4bb910-9a46-0410-90c8-c897d4f1cd53