Comment 1 for bug 1771994

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I created a dummy /usr/sbin/policy-rc.d file that echoed to /tmp/andreas the command line arguments it got, and no /tmp file was created when I ran "systemctl restart systemd-timesyncd".

With "invoke-rc.d systemd-timesyncd restart", however, I got:
root@nsnx:~# cat /tmp/andreas
/usr/sbin/policy-rc.d invoked
arguments: systemd-timesyncd restart 5

So systemctl bypassed policy-rc.d, whereas invoke-rc.d does not.