Bug 309195 - Automatic time update cannot enable the needed ntpd.service with systemctl. (systemd)
Summary: Automatic time update cannot enable the needed ntpd.service with systemctl. (...
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (show other bugs)
Version: 4.9.2
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
URL: http://chakra-project.org/bbs/viewtop...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 12:37 UTC by Kepsz
Modified: 2021-11-02 12:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kepsz 2012-10-29 12:37:17 UTC
Enabling automatic time update is just works for one session. After a restart, nothing happens because ntpd.service is remained disabled.

systemctl status ntpd.service
ntpd.service - Network Time Service
          Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled)
          Active: inactive (dead)
          CGroup: name=systemd:/system/ntpd.service

Reproducible: Always

Steps to Reproduce:
1. easy, just try to enable / disable the automatic update, than do a restart
Actual Results:  
Manualy giving out the sudo systemctl enable ntpd.service command starts the ntpd service.

systemctl status ntpd.service
ntpd.service - Network Time Service
          Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
          Active: active (running) since Mon, 29 Oct 2012 14:44:41 +0100
         Process: 278 ExecStart=/usr/bin/ntpd $NTPD_ARGS -p /run/ntpd.pid (code=exited, status=0/SUCCESS)
        Main PID: 283 (ntpd)
          CGroup: name=systemd:/system/ntpd.service
                  └ 283 /usr/bin/ntpd -g -p /run/ntpd.pid

About five minutes after a restart, the NTPD updates the clock

Expected Results:  
Start the ntpd.service automaticly withouth manual intervention.

BTW, why takes 5+ minutes to the ntpd for update the time?
Comment 1 Jekyll Wu 2012-12-06 01:30:57 UTC
You misunderstand the intention of that option. It means " I don't bother correcting the date/time manually myself, so run ntpdate to contanct a time server and update the date/time for me after I click the apply button." . It is designed to perform a one-shot operation, not designed to manage the ntpd service on your system.
Comment 2 Alberto Salvia Novella 2021-11-02 12:08:11 UTC
The option shall do the least surprising, most functional, thing: enabling the network time protocol.

https://bugs.kde.org/show_bug.cgi?id=444821