OS: CentOS Linux release 7.9.2009 (Core)
cmk: check-mk-raw-2.0.0p1 (upgraded from 1.x)
When mkbackup backup backup-daily >/dev/null runs via cron, it attempts to create /var/lock/mkbackup. Since CentOS 7 uses systemd and has a symlink /var/lock -> ../run/lock, I was kind of expecting a tmpfiles.d(5) config to be created at /usr/lib/tmpfiles.d/omd.conf when I install the RPM. Is this expectation wrong?
For now I created my own /etc/tmpfiles.d/omd.conf containing
# see also https://developers.redhat.com/blog/2016/09/20/managing-temporary-files-with-systemd-tmpfiles-on-rhel7/
#Type Path Mode UID GID
d /run/lock/mkbackup 0770 root omd
followed once by a systemd-tmpfiles --create (one could also simply reboot, but meh reboots)
While this works as expected, IMHO it would be nicer if installing CheckMK took care of this.
pcfe