tinc: add Restart in systemd service config
This commit is contained in:
parent
e412f2199a
commit
c9b9692347
@ -157,6 +157,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
PIDFile = "/run/tinc.${network}.pid";
|
PIDFile = "/run/tinc.${network}.pid";
|
||||||
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p /etc/tinc/${network}/hosts
|
mkdir -p /etc/tinc/${network}/hosts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user