avahi: rework debugmode service

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

View File

@ -0,0 +1 @@
BLUEZ_DEBUG="--debug"

View File

@ -0,0 +1 @@
OBEXD_DEBUG="--debug"

View File

@ -3,7 +3,7 @@ Description=Bluetooth configfile monitor
[Path] [Path]
PathModified=/storage/.cache/services/bluez.conf PathModified=/storage/.cache/services/bluez.conf
PathModified=/run/openelec/debug.conf PathModified=/run/openelec/debug/bluez.conf
[Install] [Install]
WantedBy=bluetooth.target WantedBy=bluetooth.target

View File

@ -7,7 +7,7 @@ ConditionPathExists=/storage/.cache/services/bluez.conf
[Service] [Service]
NotifyAccess=main NotifyAccess=main
EnvironmentFile=/storage/.cache/services/bluez.conf EnvironmentFile=/storage/.cache/services/bluez.conf
EnvironmentFile=-/run/openelec/debug.conf EnvironmentFile=-/run/openelec/debug/bluez.conf
ExecStart=/usr/lib/bluetooth/bluetoothd $BLUEZ_ARGS $BLUEZ_DEBUG ExecStart=/usr/lib/bluetooth/bluetoothd $BLUEZ_ARGS $BLUEZ_DEBUG
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
LimitNPROC=1 LimitNPROC=1

View File

@ -3,7 +3,7 @@ Description=OBEX configfile monitor
[Path] [Path]
PathModified=/storage/.cache/services/obexd.conf PathModified=/storage/.cache/services/obexd.conf
PathModified=/run/openelec/debug.conf PathModified=/run/openelec/debug/obexd.conf
[Install] [Install]
WantedBy=bluetooth.target WantedBy=bluetooth.target

View File

@ -8,7 +8,7 @@ ConditionPathExists=/storage/.cache/services/bluez.conf
[Service] [Service]
EnvironmentFile=/storage/.cache/services/obexd.conf EnvironmentFile=/storage/.cache/services/obexd.conf
EnvironmentFile=-/run/openelec/debug.conf EnvironmentFile=-/run/openelec/debug/obexd.conf
ExecStartPre=/bin/sh -c 'mkdir -p $OBEXD_ROOT' ExecStartPre=/bin/sh -c 'mkdir -p $OBEXD_ROOT'
ExecStart=/usr/lib/bluetooth/obexd -r $OBEXD_ROOT $OBEXD_DEBUG ExecStart=/usr/lib/bluetooth/obexd -r $OBEXD_ROOT $OBEXD_DEBUG