I'm not sure but I think this is the part in the plugin.py that stops starts openvpn with red button maybe one of the vix devs can suss what is needed to change the plugin or Vix python files?
Code:
def keyRed(self):
if "openvpn" in str(os.listdir("/var/run")):
os.system("/etc/init.d/openvpn stop")
self['vpnStatus'].setText("OpenVpn is not Running")
self.session.open(MessageBox, _("OpneVpn wurde gestoppt!"), MessageBox.TYPE_INFO, timeout=10)
threading.Thread(target=self.readIP).start()
try:
f = open(LOGFILE, "a")
f.write(time.strftime("%d.%m.%Y %H:%M:%S ") + "OpenVpn Stopping\n")
f.close()
except:
print "Log File Error"
else:
os.system("/etc/init.d/openvpn start")
if "openvpn" in str(os.listdir("/var/run")):
self['vpnStatus'].setText("OpenVpn is Running")
self['list'].hide()
self['vpnLoad'].show()
self.statusVpn()
try:
f = open(LOGFILE, "a")
f.write(time.strftime("%d.%m.%Y %H:%M:%S ") + "OpenVpn is Running\n")
f.close()
except:
print "Log File Error"
else:
try:
f = open(LOGFILE, "a")
f.write(time.strftime("%d.%m.%Y %H:%M:%S ") + "OpenVpn Starting Error\n")
f.close()
except:
print "Log File Error"
self['vpnStatus'].setText("OpenVpn is not Running")
self.session.open(MessageBox, _("OpneVpn konnte nicht gestartet werden!"), MessageBox.TYPE_ERROR, timeout=10)