From 1a25f27381d4bd0fb4901cacb0ba3668904d7b46 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Tue, 14 May 2013 22:52:34 +0900 Subject: [PATCH] [systemd] Move service to system Change-Id: Idc589f17dd2cc52675c7802756469706cde2f220 --- packaging/libmm-sound.spec | 18 +++++++++--------- packaging/sound-server.service | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec index f6c77f8..9cc3ca1 100644 --- a/packaging/libmm-sound.spec +++ b/packaging/libmm-sound.spec @@ -1,7 +1,7 @@ Name: libmm-sound Summary: MMSound Package contains client lib and sound_server binary -Version: 0.7.1 -Release: 2 +Version: 0.7.2 +Release: 0 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz @@ -72,10 +72,10 @@ make %{?_smp_mflags} %install %make_install -install -d %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants -install -m0644 %{SOURCE1} %{buildroot}/usr/lib/systemd/user/ -install -m0644 %{SOURCE2} %{buildroot}/usr/lib/systemd/user/ -ln -sf ../sound-server.path %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/sound-server.path +install -d %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants +install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/ +install -m0644 %{SOURCE2} %{buildroot}%{_libdir}/systemd/system/ +ln -sf ../sound-server.path %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/sound-server.path # FIXME: remove after systemd is in mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d @@ -120,10 +120,10 @@ ln -s %{_sysconfdir}/rc.d/init.d/soundserver %{buildroot}%{_sysconfdir}/rc.d/rc4 %attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/soundserver %{_sysconfdir}/rc.d/rc3.d/S23soundserver %{_sysconfdir}/rc.d/rc4.d/S23soundserver -/usr/lib/systemd/user/tizen-middleware.target.wants/sound-server.path -/usr/lib/systemd/user/sound-server.service -/usr/lib/systemd/user/sound-server.path /usr/share/sounds/sound-server/* +%{_libdir}/systemd/system/multi-user.target.wants/sound-server.path +%{_libdir}/systemd/system/sound-server.service +%{_libdir}/systemd/system/sound-server.path %files devel %defattr(-,root,root,-) diff --git a/packaging/sound-server.service b/packaging/sound-server.service index 405896e..6e9b9f5 100644 --- a/packaging/sound-server.service +++ b/packaging/sound-server.service @@ -9,4 +9,4 @@ Restart=always RestartSec=2 [Install] -WantedBy=tizen-middleware.target +WantedBy=multi-user.target -- 2.7.4