File: postrm

package info (click to toggle)
nsca 2.7.2%2Bnmu2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 740 kB
  • ctags: 205
  • sloc: sh: 3,293; ansic: 1,897; perl: 194; makefile: 117
file content (14 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

if [ "$1" = "purge" ] ; then
	# to remain backwards-compatible with inetd and the like:
	if which update-inetd >/dev/null 2>&1; then
		update-inetd --group OTHER --remove '5667\t\tstream\ttcp\tnowait\tnagios\t/usr/sbin/tcpd\t/usr/sbin/nsca -c /etc/nsca.cfg -- inetd' || true
	fi
fi

if [ "$1" = "purge" ] ; then
	update-rc.d nsca remove >/dev/null || exit 0
fi

#DEBHELPER#