Skip to contentSkip to conversation

Add dbus service file that references the systemd unit

PATCH Applied Alex Elsayed 2 participants 2 messages May 17, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 3754404.7KqlubBV4t@arkadios

#1 lore raw

PATCH v4 1/1 Add dbus service file that references the systemd unit

This allows bluez to be bus-activated.
---
v4: Drop Exec= from dbus service (only systemd activation supported)
v3: Use alias as SystemdService so 'systemctl enable/disable' works
v2: Fix whitespace error

 Makefile.am              |    2 ++
 src/bluetooth.service.in |    1 +
 src/org.bluez.service    |    5 +++++
 3 files changed, 8 insertions(+)
 create mode 100644 src/org.bluez.service
Makefile.am +2 -0
index 44e82c0..82df92e 100644
@@ -27,8 +27,10 @@ include_HEADERS =
 
 if DATAFILES
 dbusdir = $(sysconfdir)/dbus-1/system.d
+dbusservicedir = $(datadir)/dbus-1/system-services
 
 dbus_DATA = src/bluetooth.conf
+dbusservice_DATA = src/org.bluez.service
 
 confdir = $(sysconfdir)/bluetooth
 
src/bluetooth.service.in +1 -0
index 8a9edb6..2a576a3 100644
@@ -8,3 +8,4 @@ ExecStart=@prefix@/sbin/bluetoothd -n
 
 [Install]
 WantedBy=bluetooth.target
+Alias=dbus-org.bluez.service
src/org.bluez.service new file +5 -0
new file mode 100644
index 0000000..dd7ae8f
@@ -0,0 +1,5 @@
+[D-BUS Service]
+Name=org.bluez
+Exec=/bin/false
+User=root
+SystemdService=dbus-org.bluez.service
Signature · 1 line
1.7.10.2
#2 lore raw

Hi Alex,

Quoted 11 lines · Alex Elsayed

This allows bluez to be bus-activated.
---
v4: Drop Exec= from dbus service (only systemd activation supported)
v3: Use alias as SystemdService so 'systemctl enable/disable' works
v2: Fix whitespace error

 Makefile.am              |    2 ++
 src/bluetooth.service.in |    1 +
 src/org.bluez.service    |    5 +++++
 3 files changed, 8 insertions(+)
 create mode 100644 src/org.bluez.service

Applied. Thanks.

Johan