You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
change from stopped to running failed: Could not start Service[ntp]: Execution of '/sbin/service ntp start' returned 5: NTP key id not defined..skipped
If keys is defined it checks for requestkey to be defined. It also checks the key file for the existence of the id.
Here is a snip of the code
NTP_KEYS=$(awk '/^keys/ { print $2 }' $NTP_CONF)
NTP_KEYID=$(awk '/^requestkey[[:blank:]]/ { print $2 }' $NTP_CONF)
NTP_PASSWD=$(test -n "$NTP_KEYS" -a -n "$NTP_KEYID" -a -r "$NTP_KEYS" && awk '$0 ~ key { print $3 }'
key="^[[:blank:]]*$NTP_KEYID[[:blank:]]" $NTP_KEYS)
if [ -n "$NTP_KEYS" ]; then
if test -z "$NTP_KEYID"; then
echo -n "NTP key id not defined"
rc_status -s
exit 5
fi
if test -z "$NTP_PASSWD"; then
echo -n "No password for requestkey set"
exit 1
fi
fi