Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 24080
Collapse All | Expand All

(-)ntpd (+5 lines)
Lines 20-25 Link Here
20
start() {
20
start() {
21
	checkconfig || return $?
21
	checkconfig || return $?
22
22
23
	if [ -f /etc/ntp/tickadj.conf ] ; then
24
		/usr/bin/tickadj `cat /etc/ntp/tickadj.conf`
25
	fi
26
23
	if [ -n "${NTPDATE_CMD}" ] ; then
27
	if [ -n "${NTPDATE_CMD}" ] ; then
24
		ebegin "Initializing clock via ${NTPDATE_CMD}"
28
		ebegin "Initializing clock via ${NTPDATE_CMD}"
25
		${NTPDATE_CMD} ${NTPDATE_OPTS} > /dev/null
29
		${NTPDATE_CMD} ${NTPDATE_OPTS} > /dev/null
Lines 35-40 Link Here
35
}
39
}
36
40
37
stop() {
41
stop() {
42
	/usr/bin/tickadj | sed -e "s/tick\ =\ //g" >/etc/ntp/tickadj.conf
38
	ebegin "Stopping ntpd"
43
	ebegin "Stopping ntpd"
39
	start-stop-daemon --stop --quiet --pidfile /var/run/ntpd.pid
44
	start-stop-daemon --stop --quiet --pidfile /var/run/ntpd.pid
40
	eend $? "Failed to stop ntpd"
45
	eend $? "Failed to stop ntpd"

Return to bug 24080