Changed not to install geofence-server.service for DBus auto activation 21/60421/1 accepted/tizen_tv accepted/tizen_wearable accepted/tizen/ivi/20160226.095854 accepted/tizen/mobile/20160226.095758 accepted/tizen/tv/20160226.095815 accepted/tizen/wearable/20160226.095835 submit/tizen/20160226.063341
authorYoung-Ae Kang <youngae.kang@samsung.com>
Fri, 26 Feb 2016 06:18:21 +0000 (15:18 +0900)
committerYoung-Ae Kang <youngae.kang@samsung.com>
Fri, 26 Feb 2016 06:19:46 +0000 (15:19 +0900)
Change-Id: If1280d8ad7579934b9215ffbb4576f9af1ccb148

packaging/geofence-server.service
packaging/geofence-server.spec

index 1ce07b8..5464426 100644 (file)
@@ -4,8 +4,9 @@ Requires=geofence-server.service
 
 [Service]
 EnvironmentFile=/run/tizen-system-env
-Type=simple
+Type=dbus
+BusName=org.tizen.lbs.Providers.GeofenceServer
 ExecStart=/usr/bin/geofence-server
 MemoryLimit=10M
-Restart=always
-RestartSec=1
+#Restart=always
+#RestartSec=1
index 71ec32e..8d5b9a9 100644 (file)
@@ -60,9 +60,10 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
-mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants
-install -m 644 %{SOURCE1} %{buildroot}%{_unitdir_user}/geofence-server.service
-ln -s ../geofence-server.service %{buildroot}%{_unitdir_user}/default.target.wants/geofence-server.service
+#service for systemd is not installed to support only DBus auto activation
+#mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants
+#install -m 644 %{SOURCE1} %{buildroot}%{_unitdir_user}/geofence-server.service
+#ln -s ../geofence-server.service %{buildroot}%{_unitdir_user}/default.target.wants/geofence-server.service
 
 %clean
 rm -rf %{buildroot}
@@ -79,8 +80,9 @@ rm -rf %{buildroot}
 /usr/share/dbus-1/services/org.tizen.lbs.Providers.GeofenceServer.service
 %config %{_sysconfdir}/dbus-1/session.d/geofence-server.conf
 
-%{_unitdir_user}/geofence-server.service
-%{_unitdir_user}/default.target.wants/geofence-server.service
+#service for systemd is not installed to support only DBus auto activation
+#%{_unitdir_user}/geofence-server.service
+#%{_unitdir_user}/default.target.wants/geofence-server.service
 
 
 %package -n location-geofence-server