mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
2025-12-10 07:52:13 +07:00
parent beffa195bf
commit 74a314368f

View File

@@ -26,6 +26,7 @@
{
lib,
config,
pkgs,
...
}:
let
@@ -316,6 +317,25 @@
+ serverConf;
};
};
systemd.services.asterisk-watcher = {
enable = true;
description = "Asterisk Configuration files watcher";
requires = [ "asterisk.service" ];
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = [ pkgs.inotify-tools ];
script = ''
while inotifywait -m -e create /etc/static/asterisk; do
case "$file" in
pjsip.conf)
asterisk -rx "pjsip reload"
;;
esac
done
'';
};
};
};
};