Commit 22ddd367 authored by zolliker's avatar zolliker
Browse files

added frappy to servercfg

parent 104a950f
import sys
import os
import socket
from glob import glob
from select import select
from serial import serial_for_url
from subprocess import Popen, PIPE, check_output, call
from subprocess import Popen, PIPE, check_output, call, DEVNULL
from configparser import ConfigParser
FILTER = "iptables -i enp4s0 -p tcp -m tcp --dport %d -j ACCEPT"
BASIC = """
......@@ -198,4 +199,10 @@ if __name__ == '__main__':
if len(cfgfiles) != 1:
raise ValueError('there must be one and only one single cfgfile %r' % cfgfiles)[0])['ROUTER'])
if parser.has_section('FRAPPY'):
port = parser.get('FRAPPY', 'port')
cfg = parser.get('FRAPPY', 'cfg')
cmd = ['su', '-', 'l_samenv', '-c', '/home/l_samenv/frappy/bin/secop-server -p %s %s' % (port, cfg)]
Popen(cmd, stdout=DEVNULL, stderr=DEVNULL)
if parser.has_section('ROUTER'):['ROUTER'])
......@@ -5,6 +5,7 @@ enp3s0=
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment