diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2009-02-23 14:41:10 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2009-02-23 14:41:10 +0000 |
commit | 680b9e7311f8ccd0fa5190ec31a5274fbcd8a4be (patch) | |
tree | 25a375af02bdc238fb951110eeb8b30dd596a545 /libcgroup.spec.in | |
parent | 570bace5f2ba75f4fcc10a75c72726e8706cf14c (diff) | |
download | libcg-680b9e7311f8ccd0fa5190ec31a5274fbcd8a4be.tar.gz libcg-680b9e7311f8ccd0fa5190ec31a5274fbcd8a4be.tar.xz libcg-680b9e7311f8ccd0fa5190ec31a5274fbcd8a4be.zip |
From: Ivana Varekova <varekova@redhat.com>
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
Diffstat (limited to 'libcgroup.spec.in')
-rw-r--r-- | libcgroup.spec.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libcgroup.spec.in b/libcgroup.spec.in index f96b784..5fac72c 100644 --- a/libcgroup.spec.in +++ b/libcgroup.spec.in @@ -11,6 +11,7 @@ BuildRequires: byacc BuildRequires: flex BuildRequires: coreutils Requires(post): chkconfig, /sbin/service +Requires(preun): /sbin/chkconfig %description Control groups infrastructure. The tools and library help manipulate, control, @@ -50,17 +51,16 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig -# -# Do this later if required -# -#/sbin/chkconfig --add cgred -#/sbin/chkconfig --add cgconfig +/sbin/chkconfig --add cgred +/sbin/chkconfig --add cgconfig %preun -/sbin/service cgred stop > /dev/null 2>&1 || : -/sbin/service cgconfig stop > /dev/null 2>&1 || : -/sbin/chkconfig --del cgconfig -/sbin/chkconfig --del cgred +if [ $1 = 0 ]; then + /sbin/service cgred stop > /dev/null 2>&1 || : + /sbin/service cgconfig stop > /dev/null 2>&1 || : + /sbin/chkconfig --del cgconfig + /sbin/chkconfig --del cgred +fi %postun -p /sbin/ldconfig |