Don't start snooper til network is available.
Also, restart on failure, but wait a bit.
This commit is contained in:
parent
ade2e1caa0
commit
a206cfdb9c
|
@ -77,8 +77,11 @@ in {
|
||||||
systemd.services.snooper = {
|
systemd.services.snooper = {
|
||||||
path = [ snooper-server ];
|
path = [ snooper-server ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "network-online.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "120s";
|
||||||
LoadCredential = [
|
LoadCredential = [
|
||||||
"mqtt-incoming.passwd:${cfg.mqtt.incoming.password-file}"
|
"mqtt-incoming.passwd:${cfg.mqtt.incoming.password-file}"
|
||||||
"mqtt-outgoing.passwd:${cfg.mqtt.outgoing.password-file}"
|
"mqtt-outgoing.passwd:${cfg.mqtt.outgoing.password-file}"
|
||||||
|
|
Loading…
Reference in New Issue