[apache2] 01/08: use 'service apache2' instead of /etc/init.d/apache2 in monit

Stefan Fritsch sf at moszumanska.debian.org
Sun Aug 6 16:51:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to branch master
in repository apache2.

commit b9c1f72231aeb77a14d3375a5b6639e590f4c017
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Sat Aug 5 20:42:48 2017 +0200

    use 'service apache2' instead of /etc/init.d/apache2 in monit
---
 debian/apache2.monit | 4 ++--
 debian/changelog     | 6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/apache2.monit b/debian/apache2.monit
index 74bac29..8a4c294 100644
--- a/debian/apache2.monit
+++ b/debian/apache2.monit
@@ -1,7 +1,7 @@
 check process apache2 with pidfile /var/run/apache2.pid
    group www
-   start program = "/etc/init.d/apache2 start"
-   stop  program = "/etc/init.d/apache2 stop"
+   start program = "service apache2 start"
+   stop  program = "service apache2 stop"
    if failed host localhost port 80 
         protocol HTTP request "/" then restart
    if 5 restarts within 5 cycles then timeout
diff --git a/debian/changelog b/debian/changelog
index 78294a3..bdd0019 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+apache2 (2.4.27-4) UNRELEASED; urgency=medium
+
+  * Use 'service' instead of init script in monit example config.
+
+ -- Stefan Fritsch <sf at debian.org>  Sat, 05 Aug 2017 20:59:48 +0200
+
 apache2 (2.4.27-3) experimental; urgency=medium
 
   * Switch to openssl 1.1. Again closes: #851094

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git



More information about the Pkg-apache-commits mailing list