Navigation

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

    Shutdown/reboot script

    General pfSense Questions
    2
    3
    1416
    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

      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
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        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

          thanks.

          :)

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