Navigation

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

    dhcp automatic restart

    DHCP and DNS
    3
    4
    67
    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

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

      T 1 Reply Last reply Reply Quote 0
      • T
        teamits @ahmetakkaya last edited by

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

        A 1 Reply Last reply Reply Quote 0
        • A
          ahmetakkaya @teamits 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

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2021 Rubicon Communications, LLC | Privacy Policy