diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2023-11-17 00:59:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 00:59:25 +0000 |
commit | d7e7a2136ee8995919955132a41da79ea3624b8b (patch) | |
tree | 71d4348a116b3e95ab4fd2b2fa40121b66855627 /nixos | |
parent | 3ee9f51ed9fa3e6ce195572ffdc0863008139d66 (diff) | |
parent | 58cbf94b3878508dc66cdaa666d1e74772598e97 (diff) |
Merge pull request #267761 from jpds/grafana-restart-on-failure
nixos/grafana: Set systemd unit to restart on failure
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/grafana.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index 5e21407042b6a..f84d677f14d85 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -1841,6 +1841,7 @@ in serviceConfig = { WorkingDirectory = cfg.dataDir; User = "grafana"; + Restart = "on-failure"; RuntimeDirectory = "grafana"; RuntimeDirectoryMode = "0755"; # Hardening |