From 9d618cac1500b6e7bbb6afcdd0dbfe3684aa2b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 21 Feb 2014 13:30:07 +0100 Subject: [PATCH] yum-proxy: automatically restart the service on failure --- vm-systemd/qubes-yum-proxy.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vm-systemd/qubes-yum-proxy.service b/vm-systemd/qubes-yum-proxy.service index 22381b3..379d3df 100644 --- a/vm-systemd/qubes-yum-proxy.service +++ b/vm-systemd/qubes-yum-proxy.service @@ -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