]> git.pld-linux.org Git - packages/ntp.git/blame - ntp.upstart
- partial 4.2.8 update; FC patches need updates. SECURITY RELEASE, fixes
[packages/ntp.git] / ntp.upstart
CommitLineData
0d2671b6
JK
1description "NTP daemon"
2
3start on pld.network-started
4stop on pld.shutdown-started
5
6env NTPD_USER="ntp"
7env NTPD_OPTIONS=""
8
9respawn
10
11pre-start script
12 # do not bother to start if not configured
13 [ -f /etc/ntp/ntp.conf ] || /sbin/initctl stop
14end script
15
16script
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
21end script
This page took 0.05831 seconds and 4 git commands to generate.