/usr/sbin/ntpd: unrecognized option: N
Running with Alpine 3.2. Needed NTPd so I installed OpenNTPd.
- apk add openntpd
Running the NTPd server using the init script failes due to wrong option usage:
# /etc/init.d/ntpd start
* Caching service dependencies ... [ ok ]
* Starting busybox ntpd ...
/usr/sbin/ntpd: unrecognized option: N
usage: ntpd [-dnSsv] [-f file] [-p file]
* start-stop-daemon: failed to start `/usr/sbin/ntpd'
* Failed to start ntpd [ !! ]
* ERROR: ntpd failed to start
Looking inside /etc/init.d/ntpd
#!/sbin/openrc-run
name="busybox $SVCNAME"
command="/usr/sbin/$SVCNAME"
command_args="${NTPD_OPTS:--N -p pool.ntp.org}"
pidfile="/var/run/$SVCNAME.pid"
depend() {
need net
provide ntp-client
use dns
}
The “—N” is an unknown option (no such option N) and the “-p” option is used for pidfile location.
(from redmine: issue id 4550, created on 2015-08-21, closed on 2016-01-06)