~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/squid-deb-proxy.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# squid-deb-proxy - a proxy for deb packages
2
 
#
3
 
 
4
 
description "squid-deb-proxy"
5
 
 
6
 
pre-start script
7
 
    . /usr/share/squid-deb-proxy/init-common.sh
8
 
    pre_start
9
 
end script
10
 
 
11
 
post-start script
12
 
    . /usr/share/squid-deb-proxy/init-common.sh
13
 
    post_start
14
 
end script
15
 
 
16
 
# if this is done in pre-stop "restart squid-deb-proxy" kills the
17
 
# file without putting a replacement in!
18
 
post-stop script
19
 
    . /usr/share/squid-deb-proxy/init-common.sh
20
 
    post_stop
21
 
end script
22
 
 
23
 
start on (local-filesystems and net-device-up IFACE!=lo)
24
 
stop on runlevel [!2345]
25
 
 
26
 
script
27
 
  if [ -x /usr/sbin/squid ]; then
28
 
      SQUID=/usr/sbin/squid
29
 
  elif  [ -x /usr/sbin/squid3 ]; then
30
 
      SQUID=/usr/sbin/squid3
31
 
  else
32
 
      echo "No squid binary found"
33
 
      exit 1
34
 
  fi
35
 
  exec $SQUID -N -f /etc/squid-deb-proxy/squid-deb-proxy.conf
36
 
end script