Debian Codegraph @

debian/bitlbee-common.preinst

raw
1 #!/bin/sh
2
3 set -e
4
5 NAME=bitlbee
6 PIDFILE=/var/run/$NAME.pid
7
8 # git revision 7949d5a introduced dh_systemd.
9 DH_SYSTEMD_REV="3.4.2+20160612+master+41-g7949d5a-git"
10
11 # if upgrading from something older (including 3.4.2), kill the old daemon.
12 # do this just once, this time, to allow systemd to manage it.
13 if [ "$1" = 'upgrade' ]; then
14 if dpkg --compare-versions $2 lt $DH_SYSTEMD_REV; then
15 # we may not have init scripts here
16 start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE --name $NAME
17 fi
18 fi
19
20 #DEBHELPER#