Add logging to maildir watcher
This commit is contained in:
parent
01c201c682
commit
0fffe4686c
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,9 @@ in
|
||||||
Unit.Description = "Watch maildir for changes for account ${name}";
|
Unit.Description = "Watch maildir for changes for account ${name}";
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = toString (pkgs.writeShellScript "entr-watch-${name}-maildir" ''
|
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}
|
${pkgs.fd}/bin/fd . ${maildir}/${name}/Inbox | ${pkgs.entr}/bin/entr -n -d ${quick-sync}
|
||||||
done
|
done
|
||||||
'');
|
'');
|
||||||
|
|
Loading…
Reference in a new issue