[systemd-devel] Does "systemctl daemon-reload" discard service information?

Reindl Harald h.reindl at thelounge.net
Tue May 21 09:46:33 UTC 2019



Am 21.05.19 um 10:04 schrieb Zbigniew Jędrzejewski-Szmek:
> On Mon, May 20, 2019 at 03:36:28PM +0200, Ulrich Windl wrote:
>> Hi!
>>
>> I have had the effect that a "systectl status" before and after a
>> "daemon-reload" is different, while the service in question wasn't restarted:
> 
> Whenever making a report like this, always include the exact systemd
> version you are running. A link to the definition of the service would
> also be useful, so people can try to reproduce locally.

pretty irrelevant beause the Commands and stae from Exec* in the status
output is goine for years now after "daemon-reload"

systemd-239-12.git8bca462.fc29.x86_64

[root at srv-rhsoft:~]$ systemctl status named
● named.service - DNS Server
   Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor
preset: disabled)
   Active: active (running) since Tue 2019-05-21 11:44:09 CEST; 12s ago
  Process: 250270 ExecStopPost=/usr/libexec/setup-named-chroot.sh
/var/named/chroot off /etc/named-chroot.files (code=exited,
status=0/SUCCESS)
  Process: 250269 ExecStop=/usr/bin/kill -TERM $MAINPID (code=exited,
status=0/SUCCESS)
  Process: 250346 ExecStartPre=/usr/sbin/named-checkconf -t
/var/named/chroot -z /etc/named.conf (code=exited, status=0/SUCCESS)
  Process: 250310 ExecStartPre=/usr/libexec/setup-named-chroot.sh
/var/named/chroot on /etc/named-chroot.files (code=exited, status=0/SUCCESS)
 Main PID: 250347 (named)
    Tasks: 11 (limit: 512)
   Memory: 76.1M
   CGroup: /system.slice/named.service
           └─250347 /usr/sbin/named -4 -f -u named -t /var/named/chroot

Mai 21 11:44:09 srv-rhsoft.rhsoft.net named[250347]: listening on IPv4
interface lo, 127.0.0.1#53

------------------------------

[root at srv-rhsoft:~]$ systemctl daemon-reload

------------------------------

[root at srv-rhsoft:~]$ systemctl status named
● named.service - DNS Server
   Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor
preset: disabled)
   Active: active (running) since Tue 2019-05-21 11:44:09 CEST; 24s ago
 Main PID: 250347 (named)
    Tasks: 11 (limit: 512)
   Memory: 76.1M
   CGroup: /system.slice/named.service
           └─250347 /usr/sbin/named -4 -f -u named -t /var/named/chroot

Mai 21 11:44:09 srv-rhsoft.rhsoft.net named[250347]: listening on IPv4
interface lo, 127.0.0.1#53


More information about the systemd-devel mailing list