Re: [CentOS] Systemd persistent change to service file

2016-02-17 Thread James Hogarth
On 17 February 2016 at 16:50, Michael H wrote: > Hi All, > > I had my database fall over earlier, Initially I thought it was due to a > change in the OS but the postgresql update overwrote my systemd service > file. > > How can I create a file for my postgresql service that will not be > overwrit

Re: [CentOS] Systemd persistent change to service file

2016-02-17 Thread Gordon Messmer
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 " to edit a drop-in snippet. This will create a file in /etc/systemd/system/.d/ that overrides settings in the unit file packag

[CentOS] Systemd persistent change to service file

2016-02-17 Thread Michael H
Hi All, I had my database fall over earlier, Initially I thought it was due to a change in the OS but the postgresql update overwrote my systemd service file. How can I create a file for my postgresql service that will not be overwritten when updates are applied? Am I correct in thinking it will