<div dir="ltr"><div>Here are my .path and .service files:</div><div><br></div><div><font face="monospace">$ <b>cat /etc/systemd/system/trigg.path </b><br>[Path]<br>DirectoryNotEmpty=/root/trigger<br>MakeDirectory=true<br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace">$ <b>cat /etc/systemd/system/trigg.service </b><br>[Unit]<br>Description=Trigger Service<br><br>[Service]<br>ExecStart=/usr/bin/touch /root/wastriggered<br>Type=oneshot<br></font></div><div><br></div><div><br></div><div>Now, after robooting, I would have expected that <span style="font-family:monospace">/root/trigger </span>would exist; it does not. And, of course, creating it manually and touching a file in there does not trigger the path.</div><div><br></div><div>What am I missing? I have successfully used .path units in the past, and what I'm doing here looks right; unfortunately I do not have access to those old machines any more (previous employer).</div><div><br></div>This is all on a fully-patched Ubuntu 20.04LTS machine:<br>$ systemd --version<br>systemd 245 (245.4-4ubuntu3.15)<br>+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid<br></div>