mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
@@ -325,13 +325,15 @@
|
|||||||
requires = [ "asterisk.service" ];
|
requires = [ "asterisk.service" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.inotify-tools ];
|
path = with pkgs; [ inotify-tools asterisk ];
|
||||||
script = ''
|
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
|
case "$file" in
|
||||||
pjsip.conf)
|
pjsip.conf)
|
||||||
asterisk -rx "pjsip reload"
|
echo "restarting pjsip"
|
||||||
;;
|
asterisk -rx "pjsip reload"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user