File: mono-xsp4.preinst

package info (click to toggle)
xsp 4.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,176 kB
  • sloc: cs: 13,500; sh: 12,082; xml: 8,279; makefile: 650; perl: 619; ansic: 299; php: 6
file content (21 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (10)
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

NAME=mono-xsp4
DESC="XSP WebServer"

case "$1" in
   upgrade|install)
	if [ -f /etc/init.d/mono-xsp4 ]; then
	    if which invoke-rc.d > /dev/null 2>&1; then
		invoke-rc.d mono-xsp4 stop
	    else
		/etc/init.d/mono-xsp4 stop
	    fi
	fi
	;;
esac

#DEBHELPER#

exit 0