summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/ntpd
blob: 3f8086f0daf0565424ee579597cc9656aa8b1d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh /etc/rc.common

START='25'
STOP='75'

start()
{
	log 'Starting ntpd'
	start-stop-daemon -S -q -x /sbin/ntpd -- \
		-p 0.pool.ntp.org \
		-p 1.pool.ntp.org \
		-p 2.pool.ntp.org \
		-p 3.pool.ntp.org
}

stop()
{
	log 'Stopping ntpd'
	start-stop-daemon -K -q -p /var/run/ntpd.pid
}