[debian-edu-commits] debian-edu/ 01/01: Make sure to restart nagios during first boot after the new config is generated on the main server.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Oct 10 09:19:17 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 5fae97d5612d3fd3879701413400a55388bbf5ee
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Oct 10 11:19:14 2014 +0200

    Make sure to restart nagios during first boot after the new config is generated on the main server.
---
 debian/changelog                               | 2 ++
 share/debian-edu-config/tools/run-at-firstboot | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3b3c68b..0c2b5e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,8 @@ debian-edu-config (1.810) UNRELEASED; urgency=high
   * Add partial fix for incorrect Nagios configuration, calling
     dpkg-reconfigure sitesummary after nagios3 is guaranteed to be
     installed.
+  * Make sure to restart nagios during first boot after the new config
+    is generated on the main server.
 
  -- 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 ade2e36..5bc5793 100755
--- a/share/debian-edu-config/tools/run-at-firstboot
+++ b/share/debian-edu-config/tools/run-at-firstboot
@@ -54,6 +54,11 @@ if [ -x /usr/sbin/sitesummary-client ] ; then
 	if [ -x /usr/bin/munin-cron ] ; then
 	    su munin -s /usr/bin/munin-cron
 	fi
+
+	# Nagios need a restart to find the new configuration
+	if [ -x /etc/init.d/nagios3/ ] ; then
+	    service nagios3 restart
+	fi
     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