From owner-freebsd-questions@freebsd.org Sun Apr 23 13:10:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7E26D4C079 for ; Sun, 23 Apr 2017 13:10:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 800FCAEA for ; Sun, 23 Apr 2017 13:10:29 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wr0-x243.google.com with SMTP id w50so13000334wrc.0 for ; Sun, 23 Apr 2017 06:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=1/t5A3H5PI2ojEa4Kr/wogvi5sVghQfbz0ImPvrC1W4=; b=YrYu5W8VSkYPhaBfLOYDLLxYDCLyeC6Y5uRoTKrUUaMFeRPhe8Cd9teKlA4elrJJeK bEq99ncx30yhqtNi5rro3Xf1FuGqost/X5TSg2C2mRiYYYHJFQeI1aUUue5N9xigt1JU GVKW3G0SYtGiw6OyvmF7SEIPydJXVa6XtT5L4K7eMOjnheRSIBT3lJ+71BT+p9ZmyGZU q98cId09mazInTFwpoX1xa0h8ACgt0SECILPA4hGFp3JWaJ6i17OJyiq5nPXLvhA+6v6 qy30QvwcSPwBPjb0Y3cn9ENOxDNhioAK1EEfsbT+W9Kd7XWXCKiKSVJgmik/QF/DQecJ 28LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=1/t5A3H5PI2ojEa4Kr/wogvi5sVghQfbz0ImPvrC1W4=; b=olobga6A5Z9Ws/nQ7HdkKUf3aEd35x4oYiF/HqstGXzTcuo6MtrBT39L2JeENmPL3k 9e5Qv8k7yrsZQPriVFBsH/+ik2cOBFNvu5hSMfvItVUu4PMEwgGhjcLoV0P9sq/mwHRW j5ewYZBKtJ+/J2PdsQnnB5f+XkePosKxUCnAHvc13isb5FI4mJIPpSIe1CgqpTXNbzaw Fm/jfOLrZDR5IaQKtW42cuTECdEqDTEYV6/YKvcrASJCLWcDssGIU6UCgrLRmE6eOPHB Mt030WG9lIj2FcIh7j0hSzOfdKSMoaIRVB7tETTN2VXvqKZOl9iuC+C2CA/UDkyr0xAH WtSQ== X-Gm-Message-State: AN3rC/4FPV6VCThDKaCJg7S0EkvCZN5WBXwK/WOjB03SKOmN2B9/3C/7 RzJybtJfiGqYrx4f X-Received: by 10.223.177.215 with SMTP id r23mr248513wra.97.1492953027458; Sun, 23 Apr 2017 06:10:27 -0700 (PDT) Received: from gumby.homeunix.com ([90.211.21.140]) by smtp.gmail.com with ESMTPSA id s137sm8969641wme.31.2017.04.23.06.10.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Apr 2017 06:10:26 -0700 (PDT) Date: Sun, 23 Apr 2017 14:10:23 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Making openvpn fail-safe when it crashes Message-ID: <20170423141023.69837a27@gumby.homeunix.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2017 13:10:29 -0000 I run openvpn and I noticed this morning that it wasn't running. The pid file still existed so presumably it didn't shut down cleanly. The problem is that normal routing had been restored. Is it possible to make it fail-safe so normal routing is only restored after a manual shutdown or after manual intervention?