Web lists-archives.com

Re: systemd error






On Sun, Mar 10, 2019 at 1:45 PM Eduardo M KALINOWSKI <eduardo@xxxxxxxxxxxxxxxxx> wrote:
On 10/03/2019 13:25, Default User wrote:
So, should I try manually editing /lib/systemd/system/minissdpd.service?

If you do that, you'll lose changes the next time the package is upgraded.

To see if systemd is seeing your add-in file, use 'systemctl cat minissdpd.service'. It should list your file and it's contents.


-- 
Soldiers who wish to be a hero
Are practically zero,
But those who wish to be civilians,
They run into the millions.

Eduardo M KALINOWSKI
eduardo@xxxxxxxxxxxxxxxxx


Well, 

 doofus@doofus:~$ ls /lib/systemd/system/minissdpd.service
-rw-r--r-- 1 root root 418 Feb 27 22:13 /lib/systemd/system/minissdpd.service 


doofus@doofus:~$ sudo cat /lib/systemd/system/minissdpd.service
[Unit]
Description=keep memory of all UPnP devices that announced themselves
Documentation=man:minissdpd(1)
After=network-online.target

[Service]
Type=forking
EnvironmentFile=/etc/default/minissdpd
ExecStart=/usr/lib/minissdpd/minissdpd-systemd-wrapper ${MiniSSDPd_INTERFACE_ADDRESS} $MiniSSDPd_OTHER_OPTIONS
PrivateTmp=yes
LimitNOFILE=20
LimitNPROC=5
PIDFile=/run/minissdpd.pid

[Install]
WantedBy=multi-user.target

----------
But . . .
----------

doofus@doofus:~$ systemctl cat minissdpd.service
# /lib/systemd/system/minissdpd.service
[Unit]
Description=keep memory of all UPnP devices that announced themselves
Documentation=man:minissdpd(1)
After=network-online.target

[Service]
Type=forking
EnvironmentFile=/etc/default/minissdpd
ExecStart=/usr/lib/minissdpd/minissdpd-systemd-wrapper ${MiniSSDPd_INTERFACE_ADDRESS} $MiniSSDPd_OTHER_O
PrivateTmp=yes
LimitNOFILE=20
LimitNPROC=5
PIDFile=/run/minissdpd.pid

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/minissdpd.service.d/override.conf
[Unit]
After=sys-subsystem-net-devices-enp7s0.device sys-subsystem-net-devices-wlp6s0.device
Requires=sys-subsystem-net-devices-enp7s0.device sys-subsystem-net-devices-wlp6s0.device

----------

So, the file  /lib/systemd/system/minissdpd.service is unchanged since Feb 27 22:13.  It does NOT appear to include the contents of, or even refer to,  /etc/systemd/system/minissdpd.service.d/override.conf, dated Mar 10 11:23.

Yet systemctl cat minissdpd.service DOES appear to reference /etc/systemd/system/minissdpd.service.d/override.conf!

???