Hello, On Sat, Jan 27, 2024 at 01:06:15PM +0100, Jochen Bern wrote: > (Note that, back when I had to try to get rid of the parameterless > "--daemon" in the unit file, I found that the unit file would get > overwritten with every update - unlike "normal" config files, where a new > packaged version would be put into a *.rpmnew file when the update finds the > current version manually changed.)
Debian supports conffiles: they are handled specially, changes from maintainer are presented to the sysadmin at package upgrade or installation time (conffiles can stay even if you remove a package, if you don't --purge it) and you can accept them or not, merge, etc. However, AFAIR most systemd files are not conffiles (since that would apparently conflict with some systemd internals), countrary to most configuration files of all of the other packages of the Debian system [1]. Debian supports diversions: the package system will make sure the file will always be updated elsewhere. That worked the last time I used it, but I no longer use it on systemd. [2]. In emergency cases or in a RPM distribution, chattr +i could work (immutable) :) However, the systemd supported way to do this is: copy the unit file from /lib/systemd/system/ to /etc/systemd/system/ and then make the changes there. Which is AFAIK what systemctl edit XXX does as you wrote. [1] https://manpages.debian.org/testing/dpkg-dev/deb-conffiles.5.fr.html [2] http://www.ixany.org/articles/divert-files-on-debian/ _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users