On 08/15/2016 10:49 AM, Paf LeGeek wrote:
I use the Debian 8 Template so the rc.local file is in the /etc/ folder not in 
the /rw/ folder. As I said, the script works find if i launch it manually in my 
ProxyVM terminal.

This is the content of my rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

groupadd -rf qvpn ; sleep 2s
sg qvpn -c 'openvpn --cd /etc/openvpn/ --config myopenvpnfile.ovpn \
--daemon --writepid /var/run/openvpn/openvpn-client.pid'

exit 0


The vpn doc was written for both Fedora and Debian templates. The /rw/config/rc.local script is a Qubes feature that works on both. The doc uses that location so users do not have to dedicate a whole template to their vpn... /rw/config was designed for per-vm customizations such as this.

Chris

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/55e32991-6f09-702c-b048-08360a2b6de2%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to