[systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

www ouyangxuan10 at 163.com
Fri Apr 17 06:52:49 UTC 2020


hi Kevin ,


Thank you very much for you help. But how can I save this way of closing time synchronization by command after system boot up? After I update the system, the first time I start it, time synchronization is still enabled by default. It's not appropriate if I close it alone every time. So when I need it start every time, this function is off.




thanks,
Byron











At 2020-04-16 18:28:30, "Kevin P. Fleming" <kevin at km6g.us> wrote:
>There is no need to modify systemd.
>
>$ systemctl disable systemd-timesyncd
>
>That command will stop the systemd-timesyncd service from being
>started. It may also be necessary to mask it:
>
>$ systemctl mask systemd-timesyncd
>
>On Thu, Apr 16, 2020 at 6:22 AM www <ouyangxuan10 at 163.com> wrote:
>>
>> Dear all,
>>
>> I want to ask a question,How to modify systemd so that the NTP function is disabled when systemd is first started?
>>
>>  The default state of systend is to synchronize time from NTP. We can use timedatectl command to disable NTP synchronize time. But if I flash the system, the NTP  synchronize time function will auto enable.  so I want modify the systemd and disable NTP synchronize time in default state.
>>
>> thanks,
>> Byron
>>
>>
>>
>>
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200417/c1d22a7f/attachment.htm>


More information about the systemd-devel mailing list