[arch-commits] Commit in varnish/trunk (PKGBUILD rc.varnish varnish.conf.d)
Dave Reisner
dreisner at nymeria.archlinux.org
Thu Feb 28 22:50:16 UTC 2013
Date: Thursday, February 28, 2013 @ 23:50:16
Author: dreisner
Revision: 178937
remove rc.d and conf.d files
Modified:
varnish/trunk/PKGBUILD
Deleted:
varnish/trunk/rc.varnish
varnish/trunk/varnish.conf.d
----------------+
PKGBUILD | 11 -----------
rc.varnish | 49 -------------------------------------------------
varnish.conf.d | 11 -----------
3 files changed, 71 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-02-28 22:44:16 UTC (rev 178936)
+++ PKGBUILD 2013-02-28 22:50:16 UTC (rev 178937)
@@ -17,13 +17,9 @@
install=$pkgname.install
options=('!libtool')
source=("http://repo.varnish-cache.org/source/$pkgname-$pkgver.tar.gz"
- "$pkgname.conf.d"
- "rc.$pkgname"
varnish-vcl-reload
varnish.service)
md5sums=('714310c83fdbd2061d897dacd3f63d8b'
- '3b563d2d9bd74a819fdb116d69d022f0'
- '40b4c83b3ad225ed2f4bd7e677fe41a2'
'03196dee7fc68e75069393d52c370762'
'1adf5282d111a9e00e99786045451016')
@@ -44,14 +40,7 @@
package() {
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
- # reload helper
install -m755 "$srcdir/varnish-vcl-reload" "$pkgdir/usr/bin"
-
- # sysvinit
- install -Dm755 "$srcdir/rc.$pkgname" "$pkgdir/etc/rc.d/$pkgname"
- install -Dm644 "$srcdir/$pkgname.conf.d" "$pkgdir/etc/conf.d/$pkgname"
-
- # systemd
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
# license
Deleted: rc.varnish
===================================================================
--- rc.varnish 2013-02-28 22:44:16 UTC (rev 178936)
+++ rc.varnish 2013-02-28 22:50:16 UTC (rev 178937)
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/varnish
-
-pidfile=/run/varnish.pid
-if [[ -r $pidfile ]]; then
- read -r PID < "$pidfile"
- if [[ ! -d /proc/$PID ]]; then
- # stale pidfile
- unset PID
- rm -f "$pidfile"
- fi
-fi
-
-case $1 in
- start)
- stat_busy "Starting Varnish Reverse Proxy"
- if /usr/sbin/varnishd $VARNISHD_OPTS -P "$pidfile"; then
- add_daemon varnish
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- stop)
- stat_busy "Stopping Varnish Reverse Proxy"
- if [[ $PID ]] && kill $PID &>/dev/null; then
- rm_daemon varnish
- stat_done
- else
- stat_fail
- exit 1
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- reload)
- status "Recompiling and Reloading VCL" varnish-vcl-reload $VARNISH_CFG
- ;;
- *)
- echo "usage: $0 {start|stop|restart|reload}"
- ;;
-esac
Deleted: varnish.conf.d
===================================================================
--- varnish.conf.d 2013-02-28 22:44:16 UTC (rev 178936)
+++ varnish.conf.d 2013-02-28 22:50:16 UTC (rev 178937)
@@ -1,11 +0,0 @@
-#
-# Command line options to varnishd
-#
-
-VARNISH_CFG="/etc/varnish/default.vcl"
-
-VARNISHD_OPTS="-a 0.0.0.0:80 \
- -f $VARNISH_CFG \
- -T localhost:6082 \
- -s malloc,64M
- -u nobody -g nobody"
More information about the arch-commits
mailing list