~ubuntu-branches/ubuntu/trusty/apache2/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-04-01 16:30:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050401163056-ve71h4qd7f4plu7j
Tags: 2.0.53-5ubuntu5
Fix the init script to not exit with an error when asked to
stop a daemon that isn't running (Was the root cause of #8374)

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
 
                /usr/sbin/invoke-rc.d apache2 stop
9
 
        ;;
10
 
        deconfigure|failed-upgrade)
11
 
        ;;
12
 
        *)
13
 
                echo "prerm called with unknown argument \`$1'" >&2
14
 
                exit 1
15
 
        ;;
16
 
esac
17
 
 
18
 
exit 0