Re: check for jailed environment for adjkerntz

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pawel Jakub Dawidek
Date: Monday, March 1, 2010 - 1:55 pm

On Mon, Mar 01, 2010 at 02:15:41AM +0300, Subbsd wrote:
[...]

I also always was finding that annoying, but only your e-mail made me to
think about ways to fix it and that maybe simple patch like the one
below will do?

--- etc/crontab	(wersja 204363)
+++ etc/crontab	(kopia robocza)
@@ -22,4 +22,4 @@
 #
 # Adjust the time zone if the CMOS clock keeps local time, as opposed to
 # UTC time.  See adjkerntz(8) for details.
-1,31	0-5	*	*	*	root	adjkerntz -a
+1,31	0-5	*	*	*	root	[ `sysctl -n security.jail.jailed` -eq 0 ] && adjkerntz -a

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
check for jailed environment for adjkerntz, Subbsd, (Sun Feb 28, 4:15 pm)
Re: check for jailed environment for adjkerntz, Pawel Jakub Dawidek, (Mon Mar 1, 1:55 pm)
Re: check for jailed environment for adjkerntz, Peter Jeremy, (Tue Mar 2, 3:08 am)
Re: check for jailed environment for adjkerntz, Xin LI, (Tue Mar 2, 11:13 am)