~ubuntu-branches/ubuntu/maverick/squid/maverick

« back to all changes in this revision

Viewing changes to debian/squid.upstart

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-04-16 09:00:19 UTC
  • Revision ID: james.westby@ubuntu.com-20100416090019-axzr8k88k0pvj6ze
Tags: 2.7.STABLE7-1ubuntu12
debian/squid.upstart, debian/rules, postrm, postinst:  Fixed up postinstallation
(LP: # 552360)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
description     "HTTP proxy-cache"
5
5
author          "Chuck Short <zulcss@ubuntu.com>"
6
6
 
7
 
start on (net-device-up
8
 
        and local-filesystems)
 
7
start on (filesystem
 
8
        and net-device-up IFACE!=lo)
9
9
stop on runlevel[!2345]
10
10
 
11
11
expect fork
48
48
        case "$cdr" in
49
49
                [0-9]*)
50
50
                        echo "squid: squid.conf contains 2.2.5 syntax - not starting"
51
 
                        exit 1
 
51
                        exit 1 ; stop
52
52
                ;;
53
53
        esac
54
54
 
66
66
 
67
67
        exec /usr/sbin/squid $SQUID_ARGS
68
68
end script
69
 
 
70
 
post-stop script
71
 
        exec /usr/sbin/squid -k shutdown
72
 
end script