From 7cc96c9216c51d8e6aaca3ec7e5d0c3b63a7b8e0 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 16 May 2017 11:18:10 +0100 Subject: Warn the user about clock drifting when running on OpenVZ. --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure') diff --git a/configure b/configure index d2da2a9ef..51100a4f7 100755 --- a/configure +++ b/configure @@ -240,6 +240,15 @@ $config{UID} = $user[2]; # Clear the screen. system 'tput', 'clear' if $interactive; +# Warn the user about clock drifting when running on OpenVZ. +if (-e '/proc/user_beancounters' || -e '/proc/vz/vzaquota') { + print_warning <<'EOW'; +You are building InspIRCd inside of an an OpenVZ container. If you +plan to use InspIRCd in this container then you should make sure that NTP is +configured on the Hardware Node. Failure to do so may result in clock drifting! +EOW +} + # Check that the user actually wants this version. if ($version{LABEL} ne 'release') { print_warning <<'EOW'; -- cgit v1.2.3