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

Shutdown/reboot script

Scheduled Pinned Locked Moved General pfSense Questions
3 Posts 2 Posters 1.7k 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.
  • Z
    Zorac
    last edited by Mar 7, 2010, 7:47 PM

    i run a backup of some temp file in the rc.shutdown file, but they dont run when i do a reboot.  i noticed there are alot of rc.* file depending on what kind of reboot/shutdown is happening (looks like 4 different ones?).  which file should i put my command in if i want it to run on any shutdown or reboot?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Mar 7, 2010, 10:56 PM

      You'll probably either have to add it to all of them, or add support to all of them for calling an external shutdown command.

      For example, in each of them, add a line that tests if /etc/rc.shutdown.local exists and if so, run it.

      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
      • Z
        Zorac
        last edited by Mar 8, 2010, 1:13 AM

        thanks.

        :)

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received