summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoung-Ae Kang <youngae.kang@samsung.com>2016-02-26 15:18:21 +0900
committerYoung-Ae Kang <youngae.kang@samsung.com>2016-02-26 15:19:46 +0900
commitf4f10ea94e80a1b77ec9fb32a21f7707e19816e7 (patch)
treeee699de4b46a302c5d3bd82fb97ce6d9add45bb4
parent35769c89740a5fde3b60e6de8bd589ee64b50e13 (diff)
downloadgeofence-server-f4f10ea94e80a1b77ec9fb32a21f7707e19816e7.tar.gz
geofence-server-f4f10ea94e80a1b77ec9fb32a21f7707e19816e7.tar.bz2
geofence-server-f4f10ea94e80a1b77ec9fb32a21f7707e19816e7.zip
Change-Id: If1280d8ad7579934b9215ffbb4576f9af1ccb148
-rw-r--r--packaging/geofence-server.service7
-rw-r--r--packaging/geofence-server.spec12
2 files changed, 11 insertions, 8 deletions
diff --git a/packaging/geofence-server.service b/packaging/geofence-server.service
index 1ce07b8..5464426 100644
--- a/packaging/geofence-server.service
+++ b/packaging/geofence-server.service
@@ -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
diff --git a/packaging/geofence-server.spec b/packaging/geofence-server.spec
index 71ec32e..8d5b9a9 100644
--- a/packaging/geofence-server.spec
+++ b/packaging/geofence-server.spec
@@ -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