blob: 61b450ba67826b83aea0649e81337894f3ac5a4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v 1.4 2007/06/11 22:59:25 bangert Exp $
depend() {
need net
}
start() {
ebegin "Starting varnish"
start-stop-daemon --quiet --start --pidfile /var/run/varnishd.pid --exec /usr/sbin/varnishd -- -P /var/run/varnishd.pid ${VARNISHD_OPTS} &> /dev/null
eend $?
}
stop() {
ebegin "Stopping varnish"
start-stop-daemon --quiet --stop --pidfile /var/run/varnishd.pid
eend $?
}
|