We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-10-27 22:44:41 +0200

start Openvpn in rc.local

Hi all, I need to start openvpn client in background when starting phone.

At the moment the faster solution I found is to add in rc.local :

        #!/bin/sh
        openvpn /etc/openvpn/client.conf &

and to set rc.local executable.
It works fine after a reboot but there is a issue, If the phone has no available internet connection (or If I don't want it to connect) it appears the "connection popup" (I don't know it's name) asking me to select a network connection. This is very annoying.
I'd like to keep openvpn running in background. It by default check with a certain interval to connect so when connection goes on it can connect by itself and it can disconnect when connection goes down.
Is there a way to avoid the asking of connection for specific applications?
If no, is there an alternative to start openvpn in background?

Thanks

Luca

start Openvpn in rc.localrc.local always ask connection

Hi all, I need to start openvpn client in background when starting phone.

At the moment the faster solution I found is to add in rc.local :

        #!/bin/sh
        openvpn /etc/openvpn/client.conf &

and to set rc.local executable.
It works fine after a reboot but there is a issue, If the phone has no available internet connection (or If I don't want it to connect) it appears the "connection popup" (I don't know it's name) asking me to select a network connection. This is very annoying.
I'd like to keep openvpn running in background. It by default check with a certain interval to connect so when connection goes on it can connect by itself and it can disconnect when connection goes down.
Is there a way to avoid the asking of connection for specific applications?
If no, is there an alternative to start openvpn in background?

Thanks

Luca