1
0
Fork 0

Add logging to maildir watcher

This commit is contained in:
Malte Brandy 2021-07-14 18:20:20 +02:00
parent 01c201c682
commit 0fffe4686c
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -168,7 +168,9 @@ in
Unit.Description = "Watch maildir for changes for account ${name}";
Service = {
ExecStart = toString (pkgs.writeShellScript "entr-watch-${name}-maildir" ''
while true; do
while sleep 1s; do
echo "Watching the following files or directories:"
${pkgs.fd}/bin/fd . ${maildir}/${name}/Inbox
${pkgs.fd}/bin/fd . ${maildir}/${name}/Inbox | ${pkgs.entr}/bin/entr -n -d ${quick-sync}
done
'');