]>
Commit | Line | Data |
---|---|---|
01dc901d ER |
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/chrony.conf ] || /sbin/initctl stop | |
14 | end script | |
15 | ||
16 | script | |
17 | # Source old-style ntp service configuration | |
18 | [ -f /etc/sysconfig/chronyd ] && . /etc/sysconfig/chronyd | |
19 | ||
20 | export USE_UPSTART=no | |
21 | exec /etc/rc.d/init.d/chronyd start | |
22 | end script |