diff options
| author | Christian Krinitsin <code@krinitsin.xyz> | 2025-04-02 09:01:59 +0200 |
|---|---|---|
| committer | Christian Krinitsin <code@krinitsin.xyz> | 2025-04-02 09:01:59 +0200 |
| commit | fb6c96099b917e5e1956aac54a107caddb9b845e (patch) | |
| tree | a6957aab534082d7b7fc3645422195c2a056b665 /modules/polaris.nix | |
| parent | 3794179508d9ee5d5535d3d62bc94c6416988988 (diff) | |
| download | nosix-fb6c96099b917e5e1956aac54a107caddb9b845e.tar.gz nosix-fb6c96099b917e5e1956aac54a107caddb9b845e.zip | |
add monit, a monitoring service
Diffstat (limited to 'modules/polaris.nix')
| -rw-r--r-- | modules/polaris.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/polaris.nix b/modules/polaris.nix index 4facfb9..bc5d66a 100644 --- a/modules/polaris.nix +++ b/modules/polaris.nix @@ -23,4 +23,10 @@ security.acme.certs."krinitsin.com".extraDomainNames = [ "music.krinitsin.com" ]; + services.monit.config = '' + check process polaris with matching "polaris" + start program = "${pkgs.systemd}/bin/systemctl start polaris" + stop program = "${pkgs.systemd}/bin/systemctl stop polaris" + ''; + } |