Package: openvpn
Version: 2.0.9-2

Hi,

There's a trivial bug fix necessary in the init script, reload section:

# If openvpn if running under a different user than root we'll need to restart
    if egrep '^( |\t)*user' $CONFIG_DIR/$NAME.conf > /dev/null 2>&1 ; then
      stop_vpn
      sleep 1
      start_vpn
      echo -n "(restarted)"
    else

There are *two* options that start with "user" - "user" and
"username-as-common-name". I had only the latter, and the reload action
never worked properly, it just crapped out.

(It actually behaves normally when run with sh -x, so I can't put my finger
on what exactly goes wrong after that, but that's irrelevant to this bug
report, the egrep should simply fail.)

The fix is easy - add a space after "user".

Also, I don't see why stderr output of that egrep should be redirected to
/dev/null. Why not see if there's some strange error? To prevent debugging? :)

TIA.
-- 
     2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to