shack/*: RestartSec=15; Restart=always

This commit is contained in:
makefu 2019-09-26 21:46:14 +02:00
parent 3624f3cdc3
commit 9d22855d12
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
8 changed files with 17 additions and 8 deletions

View File

@ -12,7 +12,7 @@ let
retain = false;
qos = 1;
};
seconds = 30;
seconds = 10;
in
{
switch = [

View File

@ -29,6 +29,8 @@ in {
User = "nobody";
ExecStart = "${pkg}/bin/sub-new";
PrivateTmp = true;
Restart = "always";
RestartSec = "15";
};
};
}

View File

@ -33,9 +33,10 @@ in {
chown nobody /tmp/tell.json
'';
ExecStart = "${pkg}/bin/call-muell --cfg /tmp/tell.json --mode mpd loop 60";
Restart = "always";
PrivateTmp = true;
PermissionsStartOnly = true;
Restart = "always";
RestartSec = "15";
};
};
}

View File

@ -26,8 +26,9 @@ in {
WorkingDirectory = home;
PermissionsStartOnly = true;
ExecStart = "${pkg}/bin/muell_mail";
Restart = "always";
PrivateTmp = true;
Restart = "always";
RestartSec = "15";
};
};
}

View File

@ -36,8 +36,9 @@ in {
'';
WorkingDirectory = home;
ExecStart = "${pkg}/bin/muellshack";
Restart = "always";
PrivateTmp = true;
Restart = "always";
RestartSec = "15";
};
};
}

View File

@ -46,8 +46,9 @@ in {
'';
WorkingDirectory = home;
ExecStart = "${pkg}/bin/node-light";
Restart = "always";
PrivateTmp = true;
Restart = "always";
RestartSec = "15";
};
};
}

View File

@ -22,8 +22,9 @@ in {
serviceConfig = {
User = "powermeter";
ExecStart = "${pkg}/bin/powermeter-serial2mqtt";
Restart = "always";
PrivateTmp = true;
Restart = "always";
RestartSec = "15";
};
};
@ -33,8 +34,9 @@ in {
serviceConfig = {
User = "powermeter";
ExecStart = "${pkg}/bin/powermeter-mqtt2socket";
Restart = "always";
PrivateTmp = true;
Restart = "always";
RestartSec = "15";
};
};

View File

@ -27,9 +27,10 @@ in {
serviceConfig = {
User = "nobody"; # TODO separate user
ExecStart = "${pkg}/bin/radioactive-add-many loop 60";
Restart = "always";
PrivateTmp = true;
PermissionsStartOnly = true;
Restart = "always";
RestartSec = "15";
};
};
}