# comet-license-sync.path -- event-driven Comet license registration sync # (CPANEL-56598) # # The Comet license state lives in exactly these two files, so the sync runs # when one of them changes instead of polling from cron every minute. The # hourly /etc/cron.d/comet_license_sync is the safety net. # # PathChanged= covers every case the sync needs -- proven on systemd 252: a # file (or its parent directories) absent when this unit starts and created # later, an in-place write, rename-over replacement, deletion or move-away # (which is what unregisters), and attribute changes. Other files in the same # directories do not trigger it. [Unit] Description=cPanel Comet Backup: watch the license files for registration changes [Path] PathChanged=/usr/local/cpanel/cpanel.lisc PathChanged=/var/cpanel/extended_auth/storage/comet Unit=comet-license-sync.service [Install] WantedBy=paths.target