On Thu, 12.05.16 17:46, liuxueping (liuxuepi...@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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to