bluez: use own systemd service files for support with our addon

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-12 15:13:45 +02:00
parent 6bc7e8dbac
commit e5152bcb3a
4 changed files with 41 additions and 0 deletions

View File

@ -71,6 +71,11 @@ pre_configure_target() {
} }
post_makeinstall_target() { post_makeinstall_target() {
rm -rf $INSTALL/lib/systemd
}
post_install() {
enable_service bluetooth-monitor.path
enable_service bluetooth.service enable_service bluetooth.service
} }

View File

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

View File

@ -0,0 +1,10 @@
[Unit]
Description=Bluetooth configfile monitor
Requires=bluetooth.target
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart bluetooth.service
[Install]
WantedBy=bluetooth.target

View File

@ -0,0 +1,17 @@
[Unit]
Description=Bluetooth service
Requires=bluetooth.target
ConditionPathExists=/storage/.cache/services/bluez.conf
[Service]
NotifyAccess=main
# EnvironmentFile=/storage/.cache/services/avahi.conf
EnvironmentFile=-/run/openelec/debug.conf
ExecStart=/usr/lib/bluetooth/bluetoothd $BLUETOOTH_DEBUG
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
LimitNPROC=1
[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service