users/systemd: disable autostart limit for user services
This commit is contained in:
@@ -73,11 +73,13 @@ let
|
|||||||
(lib.mkIf (command != null && readiness.waitCommand == null) {
|
(lib.mkIf (command != null && readiness.waitCommand == null) {
|
||||||
serviceConfig.Type = "simple";
|
serviceConfig.Type = "simple";
|
||||||
serviceConfig.Restart = restartCondition;
|
serviceConfig.Restart = restartCondition;
|
||||||
|
startLimitIntervalSec = 0; #< disable restart limit
|
||||||
serviceConfig.ExecStart = command;
|
serviceConfig.ExecStart = command;
|
||||||
})
|
})
|
||||||
(lib.mkIf (command != null && readiness.waitCommand != null) {
|
(lib.mkIf (command != null && readiness.waitCommand != null) {
|
||||||
serviceConfig.Type = "notify";
|
serviceConfig.Type = "notify";
|
||||||
serviceConfig.Restart = restartCondition;
|
serviceConfig.Restart = restartCondition;
|
||||||
|
startLimitIntervalSec = 0; #< disable restart limit
|
||||||
# serviceConfig.NotifyAccess = "exec"; #< allow anything in Exec* to invoke systemd-notify
|
# serviceConfig.NotifyAccess = "exec"; #< allow anything in Exec* to invoke systemd-notify
|
||||||
serviceConfig.NotifyAccess = "all"; #< allow anything in Exec* to invoke systemd-notify
|
serviceConfig.NotifyAccess = "all"; #< allow anything in Exec* to invoke systemd-notify
|
||||||
script = ''
|
script = ''
|
||||||
|
Reference in New Issue
Block a user