letsencrypt-tools/systemd/letsencrypt-deploy.path
Matthew Saunders Brown 92af4b365b rework systemd stuff
move service to paths.target
remove startup dependency
change to try-reload-or-restart which has this logic:
  Reload service if it supports it.
  If not, stop and then start instead.
  Does nothing if the service is not running.
2023-12-20 09:35:52 -08:00

13 lines
308 B
SYSTEMD

[Unit]
Description="Monitor /var/tmp/letsencrypt/ for cert names to deploy."
[Path]
# TriggerLimitIntervalSec=60 - not available until next version of systemd (250)
MakeDirectory=true
DirectoryMode=0777
DirectoryNotEmpty=/var/tmp/letsencrypt
Unit=letsencrypt-deploy.service
[Install]
WantedBy=paths.target