Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Can't restart or stop openvpn: it is "already started, but inactive"

222 views
Skip to first unread message

Grant Edwards

unread,
Feb 16, 2018, 12:50:03 PM2/16/18
to
I've got a couple different openvpn client configurations set up, and
if the fail to connect, the client apparently dies and then there's no
way to stop or restart it. There is no openvpn process running.
There is no PID file. Yet rc-server insists that it's "already
started". Why is it saying that?

There must be something short of a reboot that will allow me to
restart a failed openvpn client?

# rc-service openvpn.wr7 stop
* Stopping openvpn.wr7 ...
* VPNPID='/var/run/openvpn.wr7.pid' [ !! ]
* ERROR: openvpn.wr7 failed to stop

# rc-service openvpn.wr7 start
* WARNING: openvpn.wr7 has already started, but is inactive

# ls /var/run/openvpn*
ls: cannot access '/var/run/openvpn*': No such file or directory

# ps ax | grep openvpn
10127 pts/2 S+ 0:00 grep --colour=auto openvpn
#


--
Grant Edwards grant.b.edwards Yow! Gibble, Gobble, we
at ACCEPT YOU ...
gmail.com

Neil Bothwick

unread,
Feb 16, 2018, 1:00:03 PM2/16/18
to
On Fri, 16 Feb 2018 17:41:43 +0000 (UTC), Grant Edwards wrote:

> There must be something short of a reboot that will allow me to
> restart a failed openvpn client?
>
> # rc-service openvpn.wr7 stop
> * Stopping openvpn.wr7 ...
> *
> VPNPID='/var/run/openvpn.wr7.pid' [ !! ]
> * ERROR: openvpn.wr7 failed to stop

rc-service openvpn.wr7 zap?


--
Neil Bothwick

Old hitchhikers never die-they just throw in the towel.

Grant Edwards

unread,
Feb 16, 2018, 2:50:03 PM2/16/18
to
On 2018-02-16, Neil Bothwick <ne...@digimed.co.uk> wrote:
> On Fri, 16 Feb 2018 17:41:43 +0000 (UTC), Grant Edwards wrote:
>
>> There must be something short of a reboot that will allow me to
>> restart a failed openvpn client?
>>
>> # rc-service openvpn.wr7 stop
>> * Stopping openvpn.wr7 ...
>> *
>> VPNPID='/var/run/openvpn.wr7.pid' [ !! ]
>> * ERROR: openvpn.wr7 failed to stop
>
> rc-service openvpn.wr7 zap?

Thanks.

I had resorted to just removing /var/run/openrc/inactive/<whatever>

Now that I know what to look for, I find it's on the openrc-run man
page. (I'd never heard of 'openrc-run' before, so had no idea to look
at that page.)

--
Grant Edwards grant.b.edwards Yow! UH-OH!! I put on
at "GREAT HEAD-ON TRAIN
gmail.com COLLISIONS of the 50's"
by mistake!!!
0 new messages