[CentOS] Systemd persistent change to service file

Wed Feb 17 17:10:59 UTC 2016
Gordon Messmer <gordon.messmer at gmail.com>

On 02/17/2016 08:50 AM, Michael H wrote:
> How can I create a file for my postgresql service that will not be
> overwritten when updates are applied?

Use "systemctl edit <unit>" to edit a drop-in snippet.

This will create a file in /etc/systemd/system/<unit>.d/ that overrides 
settings in the unit file packaged in the rpm.  You only need to specify 
the settings which you wish to override.

See man pages for systemctl, systemd.unit, and systemd-delta for more 
information.