diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2019-09-23 11:34:23 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2019-09-23 12:47:09 +0900 |
commit | 1323581289ee3d3f72c912bf04d0662abae77d5b (patch) | |
tree | f70916ab89ce9cde41e5ab273fa39a796993cc13 | |
parent | 4922523767411be016632b3c6573ebc65422cf9f (diff) | |
download | bluez-1323581289ee3d3f72c912bf04d0662abae77d5b.tar.gz bluez-1323581289ee3d3f72c912bf04d0662abae77d5b.tar.bz2 bluez-1323581289ee3d3f72c912bf04d0662abae77d5b.zip |
Use the systemd service for obexd
Change-Id: I988e2e18cb168b35b5e462e0f3d80e060abd8e5b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rwxr-xr-x | obexd/src/obex.service.in | 3 | ||||
-rwxr-xr-x | obexd/src/org.bluez.obex.service | 4 | ||||
-rwxr-xr-x | packaging/bluez.spec | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/obexd/src/obex.service.in b/obexd/src/obex.service.in index cfa059a2..2c110aa8 100755 --- a/obexd/src/obex.service.in +++ b/obexd/src/obex.service.in @@ -4,10 +4,11 @@ Description=Bluetooth OBEX service [Service] User=network_fw Group=network_fw +SmackProcessLabel=System SupplementaryGroups=priv_mediastorage priv_externalstorage Type=dbus BusName=org.bluez.obex -ExecStart=@libexecdir@/obexd +ExecStart=@libexecdir@/obexd -d --noplugin=ftp,syncevolution,pcsuite,irmc --symlinks -r /opt/usr/home/owner/media/ [Install] Alias=dbus-org.bluez.obex.service diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service index 132b0cdb..c3917e41 100755 --- a/obexd/src/org.bluez.obex.service +++ b/obexd/src/org.bluez.obex.service @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.bluez.obex -Exec=/bin/sh -c 'exec /usr/libexec/bluetooth/obexd -d --noplugin=ftp,syncevolution,pcsuite,irmc --symlinks -r /opt/usr/home/owner/media/' -User=network_fw +Exec=/bin/false +SystemdService=obex.service diff --git a/packaging/bluez.spec b/packaging/bluez.spec index 218ec3c8..087aa255 100755 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -399,6 +399,8 @@ ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.s ln -sf ../bluetooth.service %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service #endif +install -D -m 0644 obexd/src/obex.service %{buildroot}%{_libpath}/systemd/system/ + %post -n libbluetooth -p /sbin/ldconfig %postun -n libbluetooth -p /sbin/ldconfig @@ -482,7 +484,7 @@ popd %manifest %{name}.manifest %defattr(-,root,root,-) %{_libexecdir}/bluetooth/obexd -%exclude %{_libpath}/systemd/system/obex.service +%{_libpath}/systemd/system/obex.service %{_datadir}/dbus-1/system-services/org.bluez.obex.service #%{_sysconfdir}/obex/root-setup.d/000_create-symlinks #%{_bindir}/obex-root-setup |