On Tue, 25 Feb 2020 17:56:10 +0000, Martin Gregorie wrote:
> On Tue, 25 Feb 2020 15:21:51 +0000, Joe Beanfish wrote:
>
>> Which sounds like the road the OP went down initially. I always want to
>> use the service file that comes with the latest software so
>> everything's compatible & works as designed. I just want to tweak one
>> setting in there,
>> PrivateTmp to be specific.
>>
>> Right now I have a little script that runs right after updates and
>> checks the setting and edits the service file with sed as needed then
>> runs systemctl daemon-reload;systemctl restart THE_SERVICE
>>
>> I guess I'm stuck with that... Unless someone knows of deeper magic
>> they're willing to share?
>
> Yes, but not, AFAIK usable with Raspbian. The Fedora distro's dnf
> package manager is capable of updating config files without overwriting
> any customisations you may have previously applied, and this applies to
> systemd gubbins as well. If for some reason it has to clobber a custom
> setting, it flops the new file in after making a copy of the one it
> replaces.
>
> Its dead easy to find these cases - just run "locate *.rpmnew" after
> running "dnf update". and then using diff and your favourite editor to
> reconcile the two. Can't think why Debian doesn't do something similar.
I guess I'm used to/talking about CentOS 7 which just stomps the
.service file. It's not strictly a config file so I kinda get
that they don't tag it as such. But it contains a setting that
I think should be configurable. Anyhow, I'm wandering OT for the pi.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|