|
Bugzilla – Full Text Bug Listing |
| Summary: | 2 bugs found in ntpd init script | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Jon Nelson <jnelson-suse> |
| Component: | Bootloader | Assignee: | Peter Varkoly <varkoly> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | ||
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE 11.0 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
Thank you for your feedback. We'll fix this for openSUSE 11.1 |
I found 2 bugs in the ntpd init script, both in the ntptimeset section: 1. /etc/ntp.conf used instead of $NTP_CONF (where $NTP_CONF is used everywhere else) 2. broken use of if <condition> && success || failure: if the NTPD_BIND invocation returned non-zero (such as if ntpd is running, there is a failure to bind, etc...) the 'echo "no server configured"' command is executed. Correct (or, at least, more correct): ntptimeset) if grep -v 127.127.1.0 $NTP_CONF | grep ^server >/dev/null; then $NTPD_BIN $NTPD_OPTIONS -c $NTP_CONF -q else echo "no server configured" fi ;;