[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Running openvpn under runit/supervise


  • Subject: [Openvpn-users] Running openvpn under runit/supervise
  • From: Ralf Hildebrandt <Ralf.Hildebrandt@xxxxxxxxxx>
  • Date: Sun, 27 Jan 2008 11:57:59 +0100

Currently, openvpn runs started from /etc/init.d/openvpn using this
commandline:

/usr/sbin/openvpn --writepid /var/run/openvpn.server.pid --daemon ovpn-server --cd /etc/openvpn --config /etc/openvpn/server.conf

Now I'd like to run it using runit (http://smarden.org/runit/), which
requires openvpn to stay in the foreground. Problem: If I omit
"--daemon ovpn-server", logging will work differently.

How can I keep openvpn in the foreground, but keep the syslog()-style
logging I now have?

% openvpn --version
OpenVPN 2.0.9 i486-pc-linux-gnu [SSL] [LZO] [EPOLL] built on May 19 2007
Developed by James Yonan
Copyright (C) 2002-2005 OpenVPN Solutions LLC <info@xxxxxxxxxxx>
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users