Bug ID 979981
Summary network:time/ntp: Bug in ntp-wait.service
Classification openSUSE
Product openSUSE.org
Version unspecified
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component 3rd party software
Assignee max@suse.com
Reporter matwey.kornilov@gmail.com
QA Contact opensuse-communityscreening@forge.provo.novell.com
Found By ---
Blocker ---

Hello,

ntp-wait don't like floating-point sleep argument.

# /usr/sbin/ntp-wait -s 0.2 -n 30000
Value "0.2" invalid for option s (number expected)
ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p6
USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]... 

    -n, --tries=num              Number of times to check ntpd
    -s, --sleep=num              How long to sleep between tries
    -v, --verbose                Be verbose
    -?, --help                   Display usage information and exit
        --more-help              Pass the extended usage text through a pager

Whereas ntp-wait.service has the following:

[Service]
Type=oneshot
ExecStart=/usr/sbin/ntp-wait -s 0.2 -n 30000
RemainAfterExit=yes
StandardOutput=null

And then it fails as the following:

��� ntp-wait.service - Wait for ntpd to synchronize system clock
   Loaded: loaded (/usr/lib/systemd/system/ntp-wait.service; enabled; vendor
preset: disabled)
   Active: failed (Result: exit-code) since ���� 1970-01-01 01:00:43 CET; 46
years 4 months ago
  Process: 927 ExecStart=/usr/sbin/ntp-wait -s 0.2 -n 30000 (code=exited,
status=1/FAILURE)
 Main PID: 927 (code=exited, status=1/FAILURE)

������ 01 01:00:42 nohostname systemd[1]: Starting Wait for ntpd to synchronize
system clock...
������ 01 01:00:43 nohostname systemd[1]: ntp-wait.service: Main process exited,
code=exited, status=1/FAILURE
������ 01 01:00:43 nohostname systemd[1]: Failed to start Wait for ntpd to
synchronize system clock.
������ 01 01:00:43 nohostname systemd[1]: ntp-wait.service: Unit entered failed
state.
������ 01 01:00:43 nohostname systemd[1]: ntp-wait.service: Failed with result
'exit-code'.


You are receiving this mail because: