[systemd-devel] Failed to restart ntpd

liuxueping liuxueping1 at huawei.com
Thu May 12 09:46:30 UTC 2016


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.

在 2016/5/12 16:51, Reindl Harald 写道:
>
> Am 12.05.2016 um 09:17 schrieb liuxueping:
>> Hi:
>> It failed when i restarted ntpd service,the log showed:ntpd[3163]:
>> unable to bind to wildcard address 0.0.0.0 - another process may be
>> running - EXITING,and the ps command result showed:
>> ntp       3993  0.0  0.0      0     0 ?        Ds   10:21   0:00 [ntpd]
>> root      3995  0.0  0.0      0     0 ?        Z    10:21   0:00 [ntpd]
>> <defunct>
>> Maybe it failed because a ntpd process was still in system when started
>> a new ntpd service.If so, how does systemctl judge that a process is
>> over and start a new process?
>
> most likely the running one was not started by ntpd.service and hence is
> also not killed by systemctl - systemd is not a blind butcher like
> shell-scripts - it *knows* which processes are part of a
> service/service-group
>
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>



More information about the systemd-devel mailing list