postinst is in ipvsadm 1:1.25.clean-1ubuntu5.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #!/bin/sh
set -e
IPVSADM_CONFIG=/etc/default/ipvsadm
if [ "$1" = "configure" ]; then
if . /usr/share/debconf/confmodule; then
db_version 2.0
db_get ipvsadm/auto_load_rules; AUTO="$RET"
db_get ipvsadm/daemon_method; DAEMON="$RET"
db_get ipvsadm/daemon_multicast_interface; IFACE="$RET"
if which ipvsadm >/dev/null 2>&1; then
# Regardless of if ipvs is built into the kernel or built as a module,
# if it is part of the kernel at all, it will be available after this
ipvsadm -L -n > /dev/null 2>&1 || true
fi
if [ ! -f "/proc/net/ip_vs_conn" ]; then
db_fset ipvsadm/kernel_does_not_support_ipvs seen false
db_input high ipvsadm/kernel_does_not_support_ipvs || true
db_go
exit 0
fi
if [ "$DAEMON" = "none" ]; then
cat > $IPVSADM_CONFIG <<EOF1
# Do not edit! Use 'dpkg-reconfigure ipvsadm'.
AUTO="$AUTO"
DAEMON="$DAEMON"
EOF1
else
cat > $IPVSADM_CONFIG <<EOF2
# Do not edit! Use 'dpkg-reconfigure ipvsadm'.
AUTO="$AUTO"
DAEMON="$DAEMON"
IFACE="$IFACE"
EOF2
fi
fi
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/ipvsadm" ]; then
if [ ! -e "/etc/init/ipvsadm.conf" ]; then
update-rc.d ipvsadm defaults >/dev/null
fi
invoke-rc.d ipvsadm start || exit $?
fi
# End automatically added section
|