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

    Check if OpenVPN is running

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 4 Posters 987 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
      Marvho
      last edited by

      Hello everyone,

      is there a way to check if the OpenVPN service (Client) is running and if it's not, to start/restart it?
      Maybe a little Cron script?

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        The package "Service Watchdog" should do the job, but I haven't ever used.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Yeah, that definitely works with OpenVPN.

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

            Thanks!

            Trying it out now.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              I use the watchdog package to monitor ntp, freeradius an openvpn.  Even can be setup to send you alerts if has to restart something.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

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