File: sendmail.preinst

package info (click to toggle)
sendmail 8.9.3-3slink1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,744 kB
  • ctags: 2,997
  • sloc: ansic: 40,418; perl: 2,044; sh: 1,466; makefile: 319
file content (25 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (2)
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
#
# Debian package preinst
# Version 1.2
#
# Robert Leslie <rob@mars.org>

case "$1" in
    install)
    ;;

    upgrade)
	start-stop-daemon --stop --quiet --oknodo  \
	    --pidfile /var/run/sendmail.pid  \
	    --exec /usr/sbin/sendmail 2>/dev/null || true
    ;;

    abort-upgrade)
    ;;

    *)
	echo "preinst called with unknown argument \`$1'" >&2
	exit 0
    ;;
esac