mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
32 lines
795 B
Desktop File
32 lines
795 B
Desktop File
[Unit]
|
|
Description=Varnish Cache, a high-performance HTTP accelerator
|
|
Documentation=https://www.varnish-cache.org/docs/ man:varnishd
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# Maximum number of open files (for ulimit -n)
|
|
LimitNOFILE=131072
|
|
|
|
# Locked shared memory - should suffice to lock the shared memory log
|
|
# (varnishd -l argument)
|
|
# Default log size is 80MB vsl + 1M vsm + header -> 82MB
|
|
# unit is bytes
|
|
LimitMEMLOCK=85983232
|
|
ExecStart=/usr/sbin/varnishd \
|
|
-j unix,user=vcache \
|
|
-F \
|
|
-a :80 \
|
|
-T localhost:6082 \
|
|
-f /etc/varnish/default.vcl \
|
|
-S /etc/varnish/secret \
|
|
-s malloc,256m
|
|
ExecReload=/usr/share/varnish/varnishreload
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|