~mojocode/apache2/peruser

« back to all changes in this revision

Viewing changes to debian/apache2-mpm-peruser.prerm

  • Committer: Morton Jonuschat
  • Date: 2011-11-05 17:53:41 UTC
  • Revision ID: packages@mojocode.de-20111105175341-eaq2a21bddegvm0z
Integrate MPM Peruser 0.4.0rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
# Apache2 prerm
 
4
# Thom May <thom@debian.org>
 
5
 
 
6
case "$1" in
 
7
        upgrade|remove)
 
8
                if [ -x "/etc/init.d/apache2" ]; then
 
9
                        if [ -x /usr/sbin/invoke-rc.d ]; then
 
10
                                invoke-rc.d apache2 stop || true
 
11
                        else
 
12
                                /etc/init.d/apache2 stop || true
 
13
                        fi
 
14
                fi
 
15
                sleep 2
 
16
        ;;
 
17
        deconfigure|failed-upgrade)
 
18
        ;;
 
19
        *)
 
20
                echo "prerm called with unknown argument \`$1'" >&2
 
21
                exit 1
 
22
        ;;
 
23
esac
 
24
 
 
25
#DEBHELPER#
 
26
 
 
27
exit 0