# NTP Daemon
#
# Synchronizes the system clock with network time servers per
# /etc/inet/ntp.conf. Runs ntpd in foreground mode.

[service]
name = "ntp"
description = "Network Time Protocol Daemon"
type = "daemon"

[exec]
start = "/usr/lib/inet/ntpd -n"

[stop]
method = "contract"
signal = "TERM"
timeout = 30

[dependencies]
requires = ["network", "dns-client"]
after = ["syslog"]

[contract]
param = ["inherit", "noorphan"]
fatal = ["empty", "hwerr"]

[restart]
on = "failure"
delay = 10
max_retries = 3
