connman: rework debugmode service

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-18 14:14:10 +02:00
parent 46cd376423
commit bf55fa7580
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,2 @@
CONNMAN_DEBUG="--debug"
CONNMANVPN_DEBUG="--debug"

View File

@ -5,7 +5,8 @@ After=syslog.target
[Service]
Type=dbus
BusName=net.connman.vpn
ExecStart=/usr/sbin/connman-vpnd -n
EnvironmentFile=-/run/openelec/debug/connman.conf
ExecStart=/usr/sbin/connman-vpnd -n $CONNMANVPN_DEBUG
StandardOutput=null
[Install]

View File

@ -1,5 +1,6 @@
[Unit]
Description=Connection service
After=debugconfig.service
Before=network.target
Wants=network.target
@ -7,8 +8,9 @@ Wants=network.target
Type=dbus
BusName=net.connman
Restart=on-failure
EnvironmentFile=-/run/openelec/debug/connman.conf
ExecStartPre=/usr/lib/connman/connman-setup
ExecStart=/usr/sbin/connmand -n
ExecStart=/usr/sbin/connmand -nr $CONNMAN_DEBUG
StandardOutput=null
[Install]