Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6 abort-upgrade | abort-deconfigure | abort-remove)
7 update-inetd --enable rstatd
8 ;;
9 configure)
10 if [ -n "$2" ]; then
11 update-inetd --enable rstatd
12 else
13 update-inetd --remove "rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rstatd"
14 update-inetd --group RPC --add "rstatd/1-5 dgram rpc/udp wait nobody /usr/sbin/tcpd /usr/sbin/rpc.rstatd"
15 fi
16 ;;
17 *)
18 printf "$0: incorrect arguments: $*\n" >&2
19 exit 1
20 ;;
21 esac
22
23 #DEBHELPER#