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

    dhcp automatic restart

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 600 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.
    • ahmetakkayaA
      ahmetakkaya
      last edited by ahmetakkaya

      hi
      auto I want to restart dhcp service at 12 AM. every night?

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @ahmetakkaya
        last edited by

        12 am? :) pfSense has a "cron" package where you can schedule commands or scripts as cron jobs.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        ahmetakkayaA 1 Reply Last reply Reply Quote 0
        • ahmetakkayaA
          ahmetakkaya @SteveITS
          last edited by ahmetakkaya

          @teamits

          00:00 (24:00)

          How should the command for cron be?

          1 Reply Last reply Reply Quote 0
          • S
            serbus
            last edited by serbus

            Hello!

            Starting/restarting the dhcpd service looks complicated, but killing it should be easy.

            You could try adding dhcpd to the Service Watchdog package, killing dhcpd at midnight, and then letting the watchdog restart it. You could have a minute or two downtime for dhcpd.

            /usr/bin/killall dhcpd
            

            John

            Lex parsimoniae

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