]> git.pld-linux.org Git - packages/ntp.git/blob - ntp.upstart
- ws cleanup
[packages/ntp.git] / ntp.upstart
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
19
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
This page took 0.024618 seconds and 3 git commands to generate.