Re: Update to 1503 release problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux