Making changes to mariadb.service the right way
Hi,
So long story short, due to issues with running a debian container in LXC, i have to make some changes to the config file to make it run. Now, that's not so bad, but every time it updates, my changes get overwritten (yesterday) and lo and behold, when I was putting them back in today, I noticed the following at the top of the file: Code:
# It's not recommended to modify this file in-place, because it will be I checked the website but found no specifics and I opened the man page, but quickly became overwhelemed. The changes I need are these: Code:
[Service] Thanks, Rhys |
I am probably confused what your question is. At first, it seems that you want to know how to make a systemd unit file immune against updates. The answer is, copy that unit file to /etc/systemd, make the changes there and run systemctl daemon-reload (or just reboot). But then you ask:
Quote:
Quote:
Quote:
What I would do: Copy the original mariadb.service to /etc/systemd/system, add the above lines under the [Service] section, and you are done. The next update will overwrite /usr/lib/systemd, but not /etc/systemd. |
All times are GMT -5. The time now is 01:37 PM. |