OSDN Git Service

Add dbus service file that references the systemd unit
authorAlex Elsayed <eternaleye@gmail.com>
Thu, 17 May 2012 17:00:27 +0000 (10:00 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 17 May 2012 17:47:02 +0000 (20:47 +0300)
This allows bluez to be bus-activated.

Makefile.am
src/bluetooth.service.in
src/org.bluez.service [new file with mode: 0644]

index a912104..9c2a677 100644 (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
 
index 8a9edb6..2a576a3 100644 (file)
@@ -8,3 +8,4 @@ ExecStart=@prefix@/sbin/bluetoothd -n
 
 [Install]
 WantedBy=bluetooth.target
+Alias=dbus-org.bluez.service
diff --git a/src/org.bluez.service b/src/org.bluez.service
new file mode 100644 (file)
index 0000000..dd7ae8f
--- /dev/null
@@ -0,0 +1,5 @@
+[D-BUS Service]
+Name=org.bluez
+Exec=/bin/false
+User=root
+SystemdService=dbus-org.bluez.service