tinc: restart via reload for less downtimes
This commit is contained in:
parent
57341fa82f
commit
fca55dd3e9
@ -233,6 +233,7 @@ with import <stockholm/lib>;
|
||||
cfg.iproutePackage
|
||||
cfg.tincPackage
|
||||
];
|
||||
reloadIfChanged = true;
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
LoadCredential = filter (x: x != "") [
|
||||
@ -260,7 +261,7 @@ with import <stockholm/lib>;
|
||||
"-o PrivateKeyFile=\${CREDENTIALS_DIRECTORY}/rsa_key"
|
||||
"--pidfile=/var/run/tinc.${netname}.pid"
|
||||
];
|
||||
ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} reload";
|
||||
ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} restart";
|
||||
SyslogIdentifier = netname;
|
||||
};
|
||||
}) config.krebs.tinc;
|
||||
|
Loading…
Reference in New Issue
Block a user