[CentOS] Update to 1503 release problem

Dennis Jacobfeuerborn dennisml at conversis.de
Thu Apr 16 12:06:37 UTC 2015


On 16.04.2015 12:51, Alessandro Baggi wrote:
> From freedesktop.org:
> 
> 
> Q: I want to change a service file, but rpm keeps overwriting it in
> /usr/lib/systemd/system all the time, how should I handle this?
> 
> A: The recommended way is to copy the service file from
> /usr/lib/systemd/system to /etc/systemd/system and edit it there. The
> latter directory takes precedence over the former, and rpm will never
> overwrite it. If you want to use the distributed service file again you
> can simply delete (or rename) the service file in /etc/systemd/system
> again.
> 
> 
> This is the way?

Yes. The files under /usr/lib/systemd/system are defaults that systemd
only uses if a similar files does not exist in /etc/systemd/system.
The default files themselves should never be edited.

Regards,
  Dennis



More information about the CentOS mailing list