File: preinst

package info (click to toggle)
sysklogd 1.5-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 492 kB
  • ctags: 278
  • sloc: ansic: 3,787; sh: 333; perl: 194; makefile: 185
file content (21 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

set -e

dpkg --assert-support-predepends

if [ "$1" = "upgrade" -a -f /etc/init.d/sysklogd ]; then
    if [ -f /etc/init.d/sysklogd ]
    then
	set +e
	if [ -x /usr/sbin/invoke-rc.d ]
	then
	    invoke-rc.d sysklogd stop
	else
	    sh /etc/init.d/sysklogd stop
	fi
	set -e
    fi
fi

exit 0