core-agent-linux/vm-systemd/qubes-updates-proxy.service
Frédéric Pierret (fepitre) 94dad3640c
Use exec to ease systemd handling the tinyproxy process
From Marek's comments
2019-04-17 12:47:22 +02:00

15 lines
426 B
Desktop File

[Unit]
Description=Qubes updates proxy (tinyproxy)
ConditionPathExists=|/var/run/qubes-service/qubes-updates-proxy
After=qubes-iptables.service
[Service]
ExecStartPre=/usr/lib/qubes/iptables-updates-proxy start
ExecStart=/usr/lib/qubes/tinyproxy-wrapper -d -c /etc/tinyproxy/tinyproxy-updates.conf
ExecStopPost=/usr/lib/qubes/iptables-updates-proxy stop
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target