kumquat-buildroot/target/device/valka/target_skeleton/etc/rc.d/ntpd

25 lines
399 B
Plaintext
Raw Normal View History

2008-03-06 19:59:14 +01:00
#!/bin/ash
. /etc/rc.subr
start() {
if [ ! -x ${ntpd_program} ]; then
log_error "Missing 'ntpd' program (${ntpd_program})"
echo "Failed"
return 1
fi
echo -n " * Starting ntpd: "
if ${ntpd_program} -c ${ntpd_config} -p ${ntpd_pidfile} ${ntpd_flags}; then
echo "Ok"
else
echo "Failed"
fi
}
stop() {
echo " * Stopping ntpd..."
killpid ${ntpd_pidfile}
}
rc_run_command "$1" "ntpd"