Add dbus service file that references the systemd unit

This allows bluez to be bus-activated.
This commit is contained in:
Alex Elsayed 2012-05-17 10:00:27 -07:00 committed by Johan Hedberg
parent 982ee6499b
commit 3481ed31ba
3 changed files with 8 additions and 0 deletions

View File

@ -30,8 +30,10 @@ AM_LDFLAGS = $(MISC_LDFLAGS)
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

View File

@ -8,3 +8,4 @@ ExecStart=@prefix@/sbin/bluetoothd -n
[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service

5
src/org.bluez.service Normal file
View File

@ -0,0 +1,5 @@
[D-BUS Service]
Name=org.bluez
Exec=/bin/false
User=root
SystemdService=dbus-org.bluez.service