all repos — searchix @ 49031e3ce0a01afda5079015c442a67720017220

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: use sd_notify for watchdog and status notification

Alan Pearce
commit

49031e3ce0a01afda5079015c442a67720017220

parent

eeac61c274b3ee615aedf3318c97715d70915a72

1 file changed, 3 insertions(+), 0 deletions(-)

changed files
M nix/modules/default.nixnix/modules/default.nix
@@ -23,6 +23,9 @@ Group = cfg.group;
ReadWritePaths = [ cfg.homeDir ]; StateDirectory = mkIf (cfg.homeDir == "/var/lib/searchix") [ "searchix" ]; Restart = "on-failure"; + Type = "notify"; + NotifyAccess = "main"; + WatchdogSec = "60"; CacheDirectory = "searchix"; CapabilityBoundingSet = "";