[cpp-sp] 01/02: Only restart Apache on package configure if it is running

Scott Cantor cantor.2 at osu.edu
Thu Dec 20 19:44:09 EST 2018


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

scantor pushed a commit to annotated tag debian/2.3.1+dfsg-4
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=08d6d74d7a2b3168df3cf5937245a1d5074d2d29

commit 08d6d74d7a2b3168df3cf5937245a1d5074d2d29
Author: Russ Allbery <rra at debian.org>
AuthorDate: Mon Nov 29 14:29:49 2010 -0800

    Only restart Apache on package configure if it is running
    
    * Only restart Apache if it is running.  Thanks, Mehdi Dogguy, Michael
      Biebl, and Ferenc Wagner.
---
 debian/changelog                     | 7 +++++++
 debian/libapache2-mod-shib2.postinst | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 9f91c9f..906e6ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+shibboleth-sp2 (2.3.1+dfsg-4) unstable; urgency=low
+
+  * Only restart Apache if it is running.  Thanks, Mehdi Dogguy, Michael
+    Biebl, and Ferenc Wagner.
+
+ -- Russ Allbery <rra at debian.org>  Mon, 29 Nov 2010 14:29:42 -0800
+
 shibboleth-sp2 (2.3.1+dfsg-3) unstable; urgency=low
 
   [ Ferenc Wagner ]
diff --git a/debian/libapache2-mod-shib2.postinst b/debian/libapache2-mod-shib2.postinst
index fcc1b5c..0e4cb1f 100755
--- a/debian/libapache2-mod-shib2.postinst
+++ b/debian/libapache2-mod-shib2.postinst
@@ -34,7 +34,9 @@ if [ "$1" = "configure" ] ; then
     # The new shibd (which is about to be started) requires the corresponding
     # Apache module, otherwise strange, hard to debug error messages result.
     if [ -f /etc/apache2/mods-enabled/shib2.load ] ; then
-        invoke-rc.d apache2 restart
+        if invoke-rc.d apache2 status >/dev/null ; then
+            invoke-rc.d apache2 restart
+        fi
     fi
 fi
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list