From 12e3e1a90799367f73a6fc2148b2656d6ad2d2a5 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Tue, 5 May 2015 14:40:40 +0200 Subject: [PATCH] Handle either inittab and upstart configuration for nagios_dispatcher --- opm-core/Installation.rst | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/opm-core/Installation.rst b/opm-core/Installation.rst index 2f638fb..89b7d6a 100644 --- a/opm-core/Installation.rst +++ b/opm-core/Installation.rst @@ -126,14 +126,31 @@ Install the nagios_dispatcher.pl file into the /usr/local/bin/ directory:: root:~# cp /usr/local/src/opm/ /usr/local/bin +**If your operating system uses inittab** + Add the following line at the end of the /etc/inittab file:: d1:23:respawn:/usr/bin/perl -w /usr/local/bin/nagios_dispatcher.pl --daemon --config /usr/local/etc/nagios_dispatcher.conf -Reload the /etc/inittab file:: +and reload the /etc/inittab file:: root:~# init q +**If your operating system uses upstart** + +Create the file */etc/init/nagios_dispatcher.conf*, with the following content:: + + # This service maintains nagios_dispatcher + + start on stopped rc RUNLEVEL=[2345] + stop on starting runlevel [016] + + respawn + exec /usr/local/bin/nagios_dispatcher.pl -c /usr/local/etc/nagios_dispatcher.conf + +and start the job:: + + root:~# initctl start nagios_dispatcher User interface --------------