yum-proxy: automatically restart the service on failure
This commit is contained in:
parent
18ed540158
commit
9d618cac15
@ -8,6 +8,8 @@ ExecStartPre=/usr/bin/install -d --owner tinyproxy --group tinyproxy /var/run/ti
|
|||||||
ExecStartPre=/usr/lib/qubes/iptables-yum-proxy start
|
ExecStartPre=/usr/lib/qubes/iptables-yum-proxy start
|
||||||
ExecStart=/usr/sbin/tinyproxy -d -c /etc/tinyproxy/tinyproxy-qubes-yum.conf
|
ExecStart=/usr/sbin/tinyproxy -d -c /etc/tinyproxy/tinyproxy-qubes-yum.conf
|
||||||
ExecStopPost=/usr/lib/qubes/iptables-yum-proxy stop
|
ExecStopPost=/usr/lib/qubes/iptables-yum-proxy stop
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user