2017-03-23 07:52:30 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
for name in BACKEND_PORT BACKEND_HOST VARNISH_SERVER
|
|
|
|
do
|
|
|
|
eval value=\$$name
|
|
|
|
sed -i "s|\${${name}}|${value}|g" /etc/varnish/default.vcl
|
|
|
|
done
|
|
|
|
|
2019-10-31 14:02:33 +01:00
|
|
|
echo "exec varnishd \
|
|
|
|
-a :$VARNISH_PORT \
|
|
|
|
-T localhost:6082 \
|
|
|
|
-F \
|
|
|
|
-f $VARNISH_CONFIG \
|
|
|
|
-s malloc,$CACHE_SIZE \
|
|
|
|
$VARNISHD_PARAMS"
|
|
|
|
|
2017-03-23 07:52:30 +01:00
|
|
|
exec bash -c \
|
|
|
|
"exec varnishd \
|
|
|
|
-a :$VARNISH_PORT \
|
|
|
|
-T localhost:6082 \
|
2018-07-28 09:11:24 +02:00
|
|
|
-F \
|
2017-03-23 07:52:30 +01:00
|
|
|
-f $VARNISH_CONFIG \
|
|
|
|
-s malloc,$CACHE_SIZE \
|
2018-07-28 09:11:24 +02:00
|
|
|
$VARNISHD_PARAMS"
|