[systemd-devel] Failed to restart ntpd

Lennart Poettering lennart at poettering.net
Thu May 12 09:48:06 UTC 2016


On Thu, 12.05.16 17:46, liuxueping (liuxueping1 at huawei.com) wrote:

> Before i restart ntpd,ntpd process was running:
> ntp       3993  0.0  0.0   7404  4156 ?        Ss   10:21   0:00
> /usr/sbin/ntpd -u ntp:ntp -g
> root      3995  0.0  0.0   7404  2364 ?        S    10:21   0:00
> /usr/sbin/ntpd -u ntp:ntp -g
> so,it should be killed by systemctl and restart a new ntpd process,but it
> failed,i want to know systemd how to judge that a process is killed
> completed to start a new service.

systemd will only stop processes of a service that it started
itself. Use "systemctl status ntpd.service" on a service to see which
processes belong to it, and hence which are the ones that are killed
if it is stopped.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list