On Mon, Apr 06, 2020 at 03:17:29PM +0200, Simon Matter via CentOS wrote:
Just wondering here, if the system crond.service file is being modified/fixed with an update by rpm package, will the custom file in /etc/systemd/system also be fixed then?
No. The packages will only update files in /usr/lib/systemd/system/.
If you drop a file, /etc/systemd/system/crond.service, it will override the one in /usr/lib/systemd. You'll get no benefit from fixes in a package.
If you use /etc/systemd/system/cron.d/service.d/override.conf, the changes in the override.conf will override the contents of /usr/lib/systemd/system/crond.service. So any fixes that appear in a package update will only affect parts of the unit you didn't override.