Rolf,
A patch very similar to this one was already added in 2.0.1-rc1:
--- options.c 2005-01-26 13:17:32.851107832 -0600
+++ openvpn-2.0_rc10/options.c 2005-02-02 12:26:04.678006080 -0600
@@ -2813,6 +2813,13 @@
VERIFY_PERMISSION (OPT_P_GENERAL);
options->up_restart = true;
}
+ else if (streq (p[0], "syslog"))
+ {
+ VERIFY_PERMISSION (OPT_P_GENERAL);
+ if (p[1])
+ ++i;
+ open_syslog (p[1], false);
+ }
else if (streq (p[0], "daemon"))
{
bool didit = false;
James
On Sun, 17 Jul 2005, Rolf Fokkens wrote:
> Hi!
>
> When not running as a daemon (--daemon option), OpenVPN writes all
> output to stderr. When OpenVPN isn't run interactively, but it actually
> isn't run with the --daemon option as well, it's rather inconvenient
> that syslog isn't used. This is primarily an issue for the development
> of a VPN appliance I'm working on
> (http://adsl-dc-3b681.adsl.wanadoo.nl/vvpn) but if for example OpenVPN
> would be controlled by inittab the same problem is there.
>
> Attached a patch that solves the problem for me, it may be of use to
> others as well.
>
> Cheers!
>
> Rolf
>