1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adjkerntz spam from a jail.

Discussion in 'General' started by jnbek, Apr 27, 2012.

  1. jnbek

    jnbek New Member

    Messages:
    97
    Thanks Received:
    9
    I've been getting a lot of emails from the periodic crons over the last couple of weeks that read:

    Code:
    adjkerntz[66176]: sysctl(set: "machdep.wall_cmos_clock"): Operation not permitted


    from my apache jail. I recently set the timezone in the jail using tzsetup because jail time didn't match the host time. Since then, I've been getting these offending emails every 30 minutes. It does seem that the jail time is correct, as the crons I have set to fire at 7am and 7pm every day, are now firing at those hours. I just want the sysctl emails from the jail to become silent. Any ideas?:\
     
  2. aa

    aa New Member

    Messages:
    48
    Thanks Received:
    9
    Edit your /etc/crontab.
     
    gqgunhed thanks for this.
  3. jnbek

    jnbek New Member

    Messages:
    97
    Thanks Received:
    9
    While that's a definite possibility there has to be a better way than just editing /etc/crontab. I need the time to be correct in the jail, I would just rather avoid getting spam..
     
  4. jan

    jan New Member

    Messages:
    2
    Thanks Received:
    0
    A jail doesn't have its own timer. So the time is the same time from the base system. You can only control the timezone in a jail.

    cheers Jan
     
  5. jnbek

    jnbek New Member

    Messages:
    97
    Thanks Received:
    9
    Very odd, because all the jails (except the one spamming me) are set to UTC but the base system is set to Mountain time (meaning the time is currently 6 hours ahead in the jails compared to the host system). How I managed that is beyond me, but it's annoying x(
     
  6. jan

    jan New Member

    Messages:
    2
    Thanks Received:
    0
    Run tzsetup in your jails.
     
  7. jnbek

    jnbek New Member

    Messages:
    97
    Thanks Received:
    9
    I did that and that's when the spam started.
     
  8. gqgunhed

    gqgunhed New Member

    Messages:
    92
    Thanks Received:
    17
    I have the same issue at my system.
    All jails I ran "tzsetup" in are producing the "adjkerntz" messages as stated above.
    Those jails running on UTC time do not have those errors.

    Main system has the timezone set to CEST. No problem there.
     
  9. gqgunhed

    gqgunhed New Member

    Messages:
    92
    Thanks Received:
    17
    Problem solved.
    As aa stated with the first reply: You must deactivate (say comment out with #) the line in the /etc/crontab in the jail that has the adjkerntz entry.

    Code:
    # Adjust the time zone if the CMOS clock keeps local time, as opposed to
    # UTC time.  See adjkerntz(8) for details.
    #5,31    0-5     *       *       *       root    adjkerntz -a