Date: Thu, 31 Jan 2008 01:35:55 -0800 From: Rudy <crapsh@monkeybrains.net> To: freebsd-questions <freebsd-questions@freebsd.org> Subject: Can I run ntpd in a jail? Message-ID: <47A1967B.1000400@monkeybrains.net>
next in thread | raw e-mail | index | archive | help
Will this work? /usr/sbin/jail /var/chroot/ntp ntp.monkeybrains.net 10.10.10.10 \ /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid Can ntpd update the system clock from within a jail? Here is the layout of my jail # find /var/chroot/ntp/ /var/chroot/ntp/ /var/chroot/ntp/lib /var/chroot/ntp/lib/libm.so.5 /var/chroot/ntp/lib/libmd.so.4 /var/chroot/ntp/lib/libcrypto.so.5 /var/chroot/ntp/lib/libc.so.7 /var/chroot/ntp/usr /var/chroot/ntp/usr/sbin /var/chroot/ntp/usr/sbin/ntpd /var/chroot/ntp/libexec /var/chroot/ntp/libexec/ld-elf.so.1 /var/chroot/ntp/etc /var/chroot/ntp/etc/ntp.conf /var/chroot/ntp/var /var/chroot/ntp/var/run /var/chroot/ntp/var/run/ntpd.pid # sockstat | grep 123 root ntpd 42707 3 udp4 10.10.10.10:123 *:* I ran it for a couple of days, and the clock was off by 2 seconds... # /var/chroot/ntp/etc/ntp.conf server clock.via.net server clock.isc.org driftfile /etc/ntp.drift - Rudy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A1967B.1000400>