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

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

View File

@@ -325,13 +325,15 @@
requires = [ "asterisk.service" ];
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = [ pkgs.inotify-tools ];
path = with pkgs; [ inotify-tools asterisk ];
script = ''
while inotifywait -m -e create /etc/static/asterisk; do
inotifywait -m -e move /etc/asterisk |
while read path action file; do
case "$file" in
pjsip.conf)
asterisk -rx "pjsip reload"
;;
echo "restarting pjsip"
asterisk -rx "pjsip reload"
;;
esac
done
'';