From: Young-Ae Kang Date: Fri, 26 Feb 2016 06:18:21 +0000 (+0900) Subject: Changed not to install geofence-server.service for DBus auto activation X-Git-Tag: accepted/tizen/ivi/20160226.095854^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_wearable;p=platform%2Fcore%2Flocation%2Fgeofence-server.git Changed not to install geofence-server.service for DBus auto activation Change-Id: If1280d8ad7579934b9215ffbb4576f9af1ccb148 --- 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