~andreserl/maas/packaging_maas_user_1.7

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# maas-proxy - a caching proxy
#

description "maas-proxy"

start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]

pre-start script
    . /usr/share/maas/maas-proxy-common.sh
    pre_start
end script

script
  if [ -x /usr/sbin/squid ]; then
      SQUID=/usr/sbin/squid
  elif  [ -x /usr/sbin/squid3 ]; then
      SQUID=/usr/sbin/squid3
  else
      echo "No squid binary found"
      exit 1
  fi
  exec $SQUID -N -f /etc/maas/maas-proxy.conf
end script