On Tue, 2018-11-13 at 21:24 +0100, Achim Gratz wrote:
The handling of ntpd apparently switched from an old-style rc script to a systemd unit. Since then the stop script will take somewhere between ten seconds to a minute to declare success and continue with the shutdown.
Strange - AFAICS the systemd unit files for ntp have existed for more than 4 years in factory.
I don't see why it should take that long to shut down since ntpd really just closes the ntp logs and exits. The systemd unit file treats it as a forking daemon, which probably makes the check of whether the daemon has exited more involved.
Not really involved. For forking daemons, systemd simply kills and checks the PID mentioned in the PIDfile directive.
But ntpd can easily be told not to fork, so I think it should use the "-n" option in ExecStart and all the stuff that the current start script is doing should go into ExecStartPre?
Please consider opening a bug.
Martin
--
Dr. Martin Wilck