After a recent update my redis.service config file got overwritten

For my server I set in /usr/lib/systemd/system/redis.service
PrivateTmp=false as for other applications (celery) to find a consistant unix socket: e.g. /tmp/redis.sock

After a recent update the config file got overwritten back to its default setting. How do I make sure that during updates altered config files to not automatically get overwritten as it took me a little while to figure out why my system wasn’t working.

Hello @Bastiaan :wink:

sudo systemctl edit --full redis.service

It will write a custom service file to /etc/systemd/system

/usr/lib/systemd/system/ will be overwritten on every update…

Answering in general terms

Never alter files /usr tree - always copy to the equivalent machine location /etc or /home/$USER

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.