[omd-commits] OMD Git: omd: RPMs: Added "chkconfig --add <s>" commands before "chkconfig <s> on" commands

git version control git at mathias-kettner.de
Thu Jan 19 13:36:33 CET 2012


Module:   omd
Branch:   master
Commit:   fd9e05a8fca8b27533503ddf72b02369828ff974
URL:      http://omdistro.org/projects/omd/repository/revisions/fd9e05a8fca8b27533503ddf72b02369828ff974

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Thu Jan 19 13:36:26 2012 +0100
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Thu Jan 19 13:36:26 2012 +0100

RPMs: Added "chkconfig --add <s>" commands before "chkconfig <s> on" commands

---

 Changelog   |    1 +
 omd.spec.in |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Changelog b/Changelog
index 1576462..b5c831d 100644
--- a/Changelog
+++ b/Changelog
@@ -8,6 +8,7 @@ This file documents the revision history for the Open Monitoring Distribution
           - NagVis: Updated to NagVis 1.6.2
           - Webinject: Update to 1.71
           - Debian 6.0: Added missing dependency for mod_python (libpython2.6)
+          - RPMs: Added "chkconfig --add <s>" commands before "chkconfig <s> on" commands
 
 0.52     Dec 22 2011
           - Switch Check_MK to version 1.1.12p6 (Please refer to the migration notes
diff --git a/omd.spec.in b/omd.spec.in
index 605ca80..6b41006 100644
--- a/omd.spec.in
+++ b/omd.spec.in
@@ -62,6 +62,7 @@ fi
 # not want to make it implicitely active again.
 if [ ! -e /omd/versions/default ] ; then
     echo "Activating init script /etc/init.d/omd"
+    chkconfig --add omd
     chkconfig omd on
 fi
 
@@ -88,6 +89,7 @@ then
 fi
 
 # Make sure, global apache startscript is activated
+chkconfig --add @APACHE_NAME@
 chkconfig @APACHE_NAME@ on
 
 %preun



More information about the omd-commits mailing list