====== Path Activation Beispiel "Die ultimative Maschine" ======
systemctl edit --full --force paac.service
[Unit]
Description=Path Activation Service
[Service]
Type=oneshot
ExecStart=sh -c 'for f in /tmp/paac/*; do echo "lösche $f: $(cat $f)"; rm "$f"; done'
systemctl edit --full --force paac.path
[Unit]
Description=Demonstrate Path Activation
[Path]
MakeDirectory=true
PathChanged=/tmp/paac
[Install]
WantedBy=default.target
systemctl start paac.path
==== Ausprobieren =====
echo test > /tmp/paac/file
journalctl -fu paac.service