Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenNTPD started - even when disabled

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hfs
      last edited by

      As openntpd did not synchronize for days, I replaced it with ntpd.

      After reboot openntpd is started, even if disabled in the webgui. The relevant setting in /cf/conf/config.xml reads:

      
                      <openntpd><config><enable><interface>lan,lo0</interface></enable></config></openntpd> 
      
      

      To change this behavior, apply this patch to /etc/rc.d/system.inc:

      
      1208,1211c1208,1209
      <       if ($xmlsettings['enable'] == 'on') {
      <
      <               /* start opentpd, set time now and use /var/etc/ntpd.conf */
      <               exec("/usr/local/sbin/ntpd -s -f {$g['varetc_path']}/ntpd.conf");
      ---
      >       /* start opentpd, set time now and use /var/etc/ntpd.conf */
      >       exec("/usr/local/sbin/ntpd -s -f {$g['varetc_path']}/ntpd.conf");
      1213,1215c1211,1212
      <               // Note that we are starting up
      <               log_error("OpenNTPD is starting up.");
      <       }
      ---
      >       // Note that we are starting up
      >       log_error("OpenNTPD is starting up.");
      
      
      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        OpenNTP is used for syncing time even when the service is not enabled. IIRC the difference is when it's "disabled" in the GUI, it is not setup to listen for client connections.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.