Hello,
After the big update of yesterday I see the next error after boot about named
systemctl status named
**●** named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: **active (running)** since Wed 2021-06-02 21:35:03 CEST; 4min 50s ago
Process: 1942 ExecStartPre=/usr/libexec/bind/named.prep (code=exited, status=0/SUCCESS)
Process: 1999 ExecStart=/usr/sbin/named -u named $NAMED_ARGS (code=exited, status=0/SUCCESS)
Process: 2328 ExecReload=/sbin/kill -p $MAINPID -HUP **(code=exited, status=203/EXEC)**
Main PID: 2029 (named)
Tasks: 38 (limit: 2575)
CPU: 1.103s
CGroup: /system.slice/named.service
└─2029 /usr/sbin/named -u named
Jun 02 21:35:03 hpprol2 named[2029]: configuring command channel from '/etc/rndc.key'
Jun 02 21:35:03 hpprol2 named[2029]: **couldn't add command channel 127.0.0.1#953: file not found**
Jun 02 21:35:03 hpprol2 named[2029]: configuring command channel from '/etc/rndc.key'
Jun 02 21:35:03 hpprol2 named[2029]: **couldn't add command channel ::1#953: file not found**
Jun 02 21:35:03 hpprol2 systemd[1]: Started Berkeley Internet Name Domain (DNS).
Jun 02 21:35:03 hpprol2 systemd[1]: Reloading Berkeley Internet Name Domain (DNS).
Jun 02 21:35:03 hpprol2 systemd[2328]: **named.service: Failed to execute command: No such file or directory**
Jun 02 21:35:03 hpprol2 systemd[2328]: **named.service: Failed at step EXEC spawning /sbin/kill: No such file or directory**
Jun 02 21:35:03 hpprol2 systemd[1]: **named.service: Control process exited, code=exited, status=203/EXEC**
Jun 02 21:35:03 hpprol2 systemd[1]: **Reload failed for Berkeley Internet Name Domain (DNS).**
named is running and seems working. Program /sbin/kill doesn’t exist on my system
Is this an error in the /etc/systemd/system/multi-user.target.wants/named.service?
I don’t see why after starting named it should be killed
many thanks in advance
Philippe
Hi
Fall out from the usr merge, create a bug report openSUSE:Submitting bug reports - openSUSE
It should be /usr/bin/kill and it is used on reload/restart so it’s fine.
**erlangen:~ #** systemctl edit --full named
**erlangen:~ #** systemctl cat named
**# /etc/systemd/system/named.service**
[Unit]
Description=Berkeley Internet Name Domain (DNS)
After=network.target
After=time-set.target
Wants=nss-lookup.target
Wants=time-set.target
[Service]
Type=forking
KillMode=process
EnvironmentFile=/etc/sysconfig/named
ExecStartPre=+/usr/libexec/bind/named.prep
ExecStart=/usr/sbin/named -u named $NAMED_ARGS
ExecReload=**/usr/sbin/kill** -p $MAINPID -HUP
ProtectSystem=strict
ReadWritePaths=/var/lib/named /run/named
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectKernelLogs=yes
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
[Install]
WantedBy=multi-user.target
**erlangen:~ #**
More fallout:
**erlangen:~ #** journalctl -b -u packagekit-background.service
-- Logs begin at Wed 2021-05-12 21:28:03 CEST, end at Thu 2021-06-03 08:35:01 CEST. --
Jun 03 06:09:25 erlangen systemd[1]: Started Script to update the system with PackageKit.
Jun 03 06:09:28 erlangen systemd[1]: packagekit-background.service: Succeeded.
Jun 03 08:26:58 erlangen systemd[1]: Started Script to update the system with PackageKit.
Jun 03 08:27:20 erlangen packagekit-background.sh[1975]: /usr/local/PackageKit/packagekit-background.sh: Zeile 50: **mail: Kommando nicht gefunden. # not found**
Jun 03 08:27:20 erlangen systemd[1]: packagekit-background.service: Succeeded.
Jun 03 08:29:59 erlangen systemd[1]: Started Script to update the system with PackageKit.
Jun 03 08:30:02 erlangen systemd[1]: packagekit-background.service: Succeeded.
**erlangen:~ #**
Many thanks,
Bug 1186834 Submitted
seems only occurs when working via YaST.
The error occurs when ExecReload is executed:
**# /etc/systemd/system/named.service**
[Unit]
Description=Berkeley Internet Name Domain (DNS)
After=network.target
After=time-set.target
Wants=nss-lookup.target
Wants=time-set.target
[Service]
Type=forking
KillMode=process
EnvironmentFile=/etc/sysconfig/named
ExecStartPre=+/usr/libexec/bind/named.prep
ExecStart=/usr/sbin/named -u named $NAMED_ARGS
**ExecReload=/usr/sbin/kill -p $MAINPID -HUP**
ProtectSystem=strict
ReadWritePaths=/var/lib/named /run/named
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectKernelLogs=yes
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
[Install]
WantedBy=multi-user.target
**erlangen:~ #**
Above shows the locally patched version already.