]>
Commit | Line | Data |
---|---|---|
0d2671b6 JK |
1 | description "NTP daemon" |
2 | ||
3 | start on pld.network-started | |
4 | stop on pld.shutdown-started | |
5 | ||
6 | env NTPD_USER="ntp" | |
7 | env NTPD_OPTIONS="" | |
8 | ||
9 | respawn | |
10 | ||
11 | pre-start script | |
12 | # do not bother to start if not configured | |
13 | [ -f /etc/ntp/ntp.conf ] || /sbin/initctl stop | |
14 | end script | |
15 | ||
16 | script | |
17 | # Source old-style ntp service configuration | |
18 | [ -f /etc/sysconfig/ntpd ] && . /etc/sysconfig/ntpd | |
e9cda19b | 19 | |
0d2671b6 JK |
20 | exec /usr/sbin/ntpd -n -c /etc/ntp/ntp.conf -p /var/run/ntpd.pid ${NTPD_USER:+-u $NTPD_USER} $NTPD_OPTIONS |
21 | end script |