Comment 6 for bug 1415596

Revision history for this message
Artem Panchenko (apanchenko-8) wrote :

@Stanislaw,

we don't check return code of 'killall ntpd;' command, so it doesn't affect the next command execution. In system tests we check exit code of 'ntpd -qg && $NTPD start' (the last command) and return exception with stderr (which also contains ''ntpd: no process killed\n'') if exit_code != 0. In this issue 'ntpd -qg' returns 1, but for some reason prints error "ntpd: no servers found" to stdout (not stderr), so logs don't contain that.
Also, 'killall ntpd' was added just to avoid the situation when init script can't stop NTP service for some reason and I think we can remove it (looks like init script does its job pretty well).