From 241833b7f320e7fca84ba226f1ecbb0c963534f7 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 12 Jul 2024 15:20:54 -0400 Subject: initial commit of hypervisor configs --- scripts/os/freebsd/20-ntp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/os/freebsd/20-ntp (limited to 'scripts/os/freebsd/20-ntp') diff --git a/scripts/os/freebsd/20-ntp b/scripts/os/freebsd/20-ntp new file mode 100644 index 0000000..888bab4 --- /dev/null +++ b/scripts/os/freebsd/20-ntp @@ -0,0 +1,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 -- cgit v1.2.3