~ubuntu-branches/debian/sid/varnish/sid

« back to all changes in this revision

Viewing changes to redhat/varnish.initrc

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-03-21 10:16:07 UTC
  • mfrom: (24.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321101607-528fzl583fqanas5
Tags: 2.1.5-2
ReleaseĀ forĀ unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# Provides: varnish
13
13
# Required-Start: $network $local_fs $remote_fs
14
14
# Required-Stop: $network $local_fs $remote_fs
 
15
# Default-Start:
 
16
# Default-Stop:
15
17
# Should-Start: $syslog
16
18
# Short-Description: start and stop varnishd
17
19
# Description: Varnish is a high-perfomance HTTP accelerator
24
26
pidfile=/var/run/varnish.pid
25
27
 
26
28
exec="/usr/sbin/varnishd"
 
29
reload_exec="/usr/sbin/varnish_reload_vcl"
27
30
prog="varnishd"
28
31
config="/etc/sysconfig/varnish"
29
32
lockfile="/var/lock/subsys/varnish"
70
73
                        echo
71
74
                else
72
75
                        echo_failure
 
76
                        echo
73
77
                fi
74
78
                return $retval
75
79
        fi
90
94
}
91
95
 
92
96
reload() {
93
 
        restart
 
97
        if [ "$RELOAD_VCL" = "1" ]
 
98
        then
 
99
                $reload_exec
 
100
        else
 
101
                force_reload
 
102
        fi
94
103
}
95
104
 
96
105
force_reload() {