Skip to content

Commit

Permalink
Handle either inittab and upstart configuration for nagios_dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed May 5, 2015
1 parent 5570d2d commit 12e3e1a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion opm-core/Installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------
Expand Down

0 comments on commit 12e3e1a

Please sign in to comment.