[omd-commits] OMD Git: omd: omd: Always use apachectl instead of the init script

git version control git at mathias-kettner.de
Sat Jul 12 15:54:13 CEST 2014


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

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Sat Jul 12 13:32:29 2014 +0200
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Sat Jul 12 13:32:29 2014 +0200

omd: Always use apachectl instead of the init script

When interacting with the system wide apache process it seems
to be more portable to use the apachectl program instead of
the init script. In times of all the different upstart, systemd
and whatever the init scripts are not used on all systems anymore.

---

 packages/omd/omd |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/omd/omd b/packages/omd/omd
index 45f0531..0b611fd 100644
--- a/packages/omd/omd
+++ b/packages/omd/omd
@@ -893,10 +893,10 @@ def reload_apache():
     show_success(os.system("%s graceful" % g_info["APACHE_CTL"]))
 
 def restart_apache():
-    if os.system("%s status >/dev/null 2>&1" % g_info["APACHE_INIT"]) >> 8 == 0:
+    if os.system("%s status >/dev/null 2>&1" % g_info["APACHE_CTL"]) >> 8 == 0:
         sys.stdout.write("Restarting Apache...")
         sys.stdout.flush()
-        show_success(os.system("%s restart >/dev/null" % g_info["APACHE_INIT"]))
+        show_success(os.system("%s restart >/dev/null" % g_info["APACHE_CTL"]))
 
 def replace_tags(content, replacements):
     for var, value in replacements.items():



More information about the omd-commits mailing list