• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 622 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.
  • A
    ahmetakkaya
    last edited by ahmetakkaya Feb 1, 2021, 10:14 PM Feb 1, 2021, 9:54 PM

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

    S 1 Reply Last reply Feb 1, 2021, 10:11 PM Reply Quote 0
    • S
      SteveITS Galactic Empire @ahmetakkaya
      last edited by Feb 1, 2021, 10:11 PM

      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!

      A 1 Reply Last reply Feb 1, 2021, 10:14 PM Reply Quote 0
      • A
        ahmetakkaya @SteveITS
        last edited by ahmetakkaya Feb 1, 2021, 10:15 PM Feb 1, 2021, 10:14 PM

        @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 Feb 2, 2021, 2:47 AM Feb 2, 2021, 2:46 AM

          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
          3 out of 4
          • First post
            3/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received