Re: systemd - how to run system service by user target

2016-10-17 Thread Karl E. Jorgensen
Hi

On Mon, Oct 17, 2016 at 10:01:58AM +0200, Kamil Jońca wrote:
> 
> Assume we have openvpn.service.
> This service neccessary only when I want to connect to my work from
> home.
> 
> Is it possible to make user target which will be automatically run this
> service?
> KJ
> 

It probably is. I had the same problem - a "vpn to home" that doesn't
need to run when at home.

My solution: Firewalling rules on the server-side endpoint, that
rejects VPN connections from inside the network.  Thus, my openvpn
service on my laptop can run constantly, but the VPN will only
actually connect when I'm _not_ at home.

Hope this helps
--
Karl E. Jorgensen (also KJ)



systemd - how to run system service by user target

2016-10-17 Thread Kamil Jońca

Assume we have openvpn.service.
This service neccessary only when I want to connect to my work from
home.

Is it possible to make user target which will be automatically run this
service?
KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
My mind can never know my body, although it has become quite friendly
with my legs.
-- Woody Allen, on Epistemology