File: preinst

package info (click to toggle)
smstools 3.1.21-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,500 kB
  • sloc: ansic: 18,624; sh: 1,196; php: 115; makefile: 42; awk: 17
file content (15 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

# The following is a workaround that is needed for version 3.0-1 because its init
# script is sometimes not working properly. This would result in zombie processes
# after installation, or even worse it could fail the installation
# Also here is a fix for version 
if [ "$1" = 'upgrade' ]; then
        if dpkg --compare-versions "$2" eq 3.0-1 ; then
                start-stop-daemon --stop -x /usr/sbin/smsd -R 30 --signal -9
                if test -f /var/run/smsd.pid ; then rm /var/run/smsd.pid; fi
	fi
fi

#DEBHELPER#