diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-12 15:20:54 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-12 15:20:54 -0400 |
commit | 241833b7f320e7fca84ba226f1ecbb0c963534f7 (patch) | |
tree | ee9839af8bee6ec9c5cac08306e3167634babcec /scripts/os/freebsd/20-ntp | |
parent | 8ec6df0afeb4ef69fa64de5516d16f4be48e0549 (diff) | |
download | infrastructure-241833b7f320e7fca84ba226f1ecbb0c963534f7.tar.gz |
initial commit of hypervisor configs
Diffstat (limited to 'scripts/os/freebsd/20-ntp')
-rw-r--r-- | scripts/os/freebsd/20-ntp | 14 |
1 files changed, 14 insertions, 0 deletions
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 |