~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/syslog-ng.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-05-29 07:38:34 UTC
  • Revision ID: james.westby@ubuntu.com-20100529073834-qjz8y2s4fe2eshrq
Tags: 3.1.1-3
* Update initscript not to fail if syslog-ng is already running or stopped.
* Don't just enable SSL support, but make it really built.
* Don't leave files behind on remove and purge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
if [ "$1" = "remove" ]; then
6
6
    if [ -x "/etc/init.d/syslog-ng" ]; then
7
7
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
8
 
            invoke-rc.d syslog-ng stop ||true
 
8
            invoke-rc.d syslog-ng stop || true
9
9
        else
10
 
            /etc/init.d/syslog-ng stop ||true
 
10
            /etc/init.d/syslog-ng stop || true
11
11
        fi
12
12
    fi
13
13
fi