aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/20-ntp
blob: 888bab45d3611b3f23395657a9b4c7d62a823370 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Jails don't need NTP.
if [ "$BOXCONF_VIRTUALIZATION_TYPE" = jail ]; then
  return
fi

install_template -m 0644 /etc/ntp.conf

sysrc -v \
  ntpd_enable=YES \
  ntpd_sync_on_start=YES

service ntpd restart