This file is indexed.

postinst is in xinetd 1:2.3.14-7ubuntu4.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -e

if test "$1" = "configure"; then
    if dpkg --compare-versions "$2" lt-nl 1:2.3.14-3; then
        sed -i -e "s/INETD_COMPAT=Yes/INETD_COMPAT=No/" /etc/default/xinetd
    fi
fi

if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
    invoke-rc.d xinetd stop
elif [ -x /etc/init.d/xinetd ]; then
    /etc/init.d/xinetd stop >&2
else
    start-stop-daemon --quiet --stop --signal 3 --oknodo --exec /usr/sbin/xinetd
fi

# Automatically added by dh_installinit
if [ -e "/etc/init/xinetd.conf" ]; then
	# start fails if already running
	start xinetd || :
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f xinetd remove >/dev/null || exit $?
# End automatically added section