yum-proxy: automatically restart the service on failure

This commit is contained in:
Marek Marczykowski-Górecki 2014-02-21 13:30:07 +01:00
parent 18ed540158
commit 9d618cac15

View File

@ -8,6 +8,8 @@ ExecStartPre=/usr/bin/install -d --owner tinyproxy --group tinyproxy /var/run/ti
ExecStartPre=/usr/lib/qubes/iptables-yum-proxy start
ExecStart=/usr/sbin/tinyproxy -d -c /etc/tinyproxy/tinyproxy-qubes-yum.conf
ExecStopPost=/usr/lib/qubes/iptables-yum-proxy stop
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target