[debian-edu-commits] debian-edu/ 01/01: Fix typo in nagios restart code used at first boot. Add more logging in first boot script to know what is going on in the script.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Oct 10 12:50:21 UTC 2014


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

pere pushed a commit to branch master
in repository debian-edu-config.

commit 86a9e17c1980857a06e16b874eb651816291191b
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Oct 10 14:50:18 2014 +0200

    Fix typo in nagios restart code used at first boot.  Add more logging in first boot script to know what is going on in the script.
---
 debian/changelog                               | 2 ++
 share/debian-edu-config/tools/run-at-firstboot | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d472735..b18daf9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,8 @@ debian-edu-config (1.810) UNRELEASED; urgency=high
     www.debian.org which require access to the global DNS system.
   * Move our squid3.conf to the correct Makefile block to avoid
     installing it with the execute bit.  Thank you, lintian!
+  * Fix typo in nagios restart code used at first boot.  Add more
+    logging in first boot script to know what is going on in the script.
 
  -- Wolfgang Schweer <wschweer at arcor.de>  Tue, 07 Oct 2014 12:47:06 +0200
 
diff --git a/share/debian-edu-config/tools/run-at-firstboot b/share/debian-edu-config/tools/run-at-firstboot
index 5bc5793..de935e0 100755
--- a/share/debian-edu-config/tools/run-at-firstboot
+++ b/share/debian-edu-config/tools/run-at-firstboot
@@ -46,17 +46,21 @@ fi
 
 # Update sitesummary and munin configuration quickly
 if [ -x /usr/sbin/sitesummary-client ] ; then
+    info "submitting sitesummary information to server"
     sitesummary-client
     if [ -x /etc/cron.daily/sitesummary ] ; then
+	info "updating sitesummary server information"
 	/etc/cron.daily/sitesummary
 
 	# Update the munin web pages too
 	if [ -x /usr/bin/munin-cron ] ; then
+	    info "updating munin web pages"
 	    su munin -s /usr/bin/munin-cron
 	fi
 
 	# Nagios need a restart to find the new configuration
-	if [ -x /etc/init.d/nagios3/ ] ; then
+	if [ -x /etc/init.d/nagios3 ] ; then
+	    info "restarting nagios3 service"
 	    service nagios3 restart
 	fi
     fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list