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/syncthing.nix | |
| parent | 3794179508d9ee5d5535d3d62bc94c6416988988 (diff) | |
| download | nosix-fb6c96099b917e5e1956aac54a107caddb9b845e.tar.gz nosix-fb6c96099b917e5e1956aac54a107caddb9b845e.zip | |
add monit, a monitoring service
Diffstat (limited to 'modules/syncthing.nix')
| -rw-r--r-- | modules/syncthing.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/syncthing.nix b/modules/syncthing.nix index c25c956..cf213b2 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -16,4 +16,10 @@ security.acme.certs."krinitsin.com".extraDomainNames = [ "syncthing.krinitsin.com" ]; + services.monit.config = '' + check process syncthing with matching "syncthing" + start program = "${pkgs.systemd}/bin/systemctl start syncthing" + stop program = "${pkgs.systemd}/bin/systemctl stop syncthing" + ''; + } |