File: prerm

package info (click to toggle)
thttpd 2.23beta1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 684 kB
  • ctags: 679
  • sloc: ansic: 7,908; sh: 1,871; makefile: 310
file content (21 lines) | stat: -rw-r--r-- 312 bytes parent folder | download
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

case "$1" in
	remove|upgrade|remove-in-favour|deconfigure-in-favour)
		#
		#	Stop the daemon
		#
		if [ -x /usr/sbin/invoke-rc.d ]; then
			invoke-rc.d thttpd stop
		else
			/etc/init.d/thttpd stop
		fi
		[ -L /usr/doc/thttpd ] && rm -f /usr/doc/thttpd
		;;
	failed-upgrade)
		;;
esac

exit 0