File: nagios4-core.postinst

package info (click to toggle)
nagios4 4.4.6-4.1
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 22,336 kB
  • sloc: ansic: 97,631; sh: 12,619; javascript: 5,483; perl: 2,624; makefile: 1,265; php: 381; ruby: 95
file content (20 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# debconf-devel(7) asks we do this
.  /usr/share/debconf/confmodule


if [ -x "/etc/init.d/nagios4" ]
then
    if ! /etc/init.d/nagios4 status >/dev/null
    then
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]
	then invoke-rc.d nagios4 start || true
	else /etc/init.d/nagios4 start || true
	fi
    fi
fi

#DEBHELPER#