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

    Auto restart on SIGTERM possible?

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 1.2k 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.
    • M
      mxx
      last edited by

      Hi,

      I was looking for a solution for quite some time but was unsuccessful.
      My problem is that from time to time my vpn provider has temporary issues which will cause a reconnect followed by an AUTH_FAILED with a SIGTERM.

      When that happens pfsense doesn't start the daemon again which is very annoying :D
      I understand that this shouldn't be default behaviour, but is there any possibility to change that?
      If not by config then is there a script responsible for starting the daemon I could change putting code into an infinite loop that repeats unless the tunnel was disabled by config?

      I suddenly notice that I have no internet access, need to connect to my pfsense box and start the openvpn daemon again.
      It would be great if that could be avoided.

      Thank you very much!

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        if openvpn stops//dies/is not running anymore you could check out "Service Watchdog" package. it's available under system->packages and can monitor any service

        1 Reply Last reply Reply Quote 0
        • M
          mxx
          last edited by

          Thanks heper!
          I'll try that.

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