summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangchul Lee <sc11.lee@samsung.com>2016-11-15 11:09:32 +0900
committerSangchul Lee <sc11.lee@samsung.com>2016-11-22 17:12:43 -0800
commitf5366d1b9446ba6d270382ccabe67681862c815d (patch)
tree70543e309ca026708dcd7f4e8d216e352314b3b0
parenta9290218c24ee95ac918ac85ea56bedd22c44c05 (diff)
downloadmurphy-f5366d1b9446ba6d270382ccabe67681862c815d.tar.gz
murphy-f5366d1b9446ba6d270382ccabe67681862c815d.tar.bz2
murphy-f5366d1b9446ba6d270382ccabe67681862c815d.zip
Modify spec and service file
Change value of WantedBy field to multi-user.target Change-Id: I6fae41114ed53f461543c5351d2e5cef630c63bb Signed-off-by: Sangchul Lee <sc11.lee@samsung.com> (cherry picked from commit 0cb0a08aae506e747a5a57fbd98f8bc01886c440)
-rw-r--r--packaging/murphy.spec4
-rw-r--r--packaging/murphyd.service2
2 files changed, 4 insertions, 2 deletions
diff --git a/packaging/murphy.spec b/packaging/murphy.spec
index f8c9355..45511b7 100644
--- a/packaging/murphy.spec
+++ b/packaging/murphy.spec
@@ -293,8 +293,9 @@ mkdir -p %{buildroot}%{_tmpfilesdir}
cp packaging/murphyd.conf %{buildroot}%{_tmpfilesdir}
# Copy the systemd files in place.
-mkdir -p %{buildroot}%{_unitdir}
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
cp packaging/murphyd.service %{buildroot}%{_unitdir}
+ln -sf ../murphyd.service %{buildroot}%{_unitdir}/multi-user.target.wants/murphyd.service
%if %{with dbus}
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
@@ -355,6 +356,7 @@ ldconfig
%manifest murphy.manifest
%{_bindir}/murphyd
%config %{_sysconfdir}/murphy
+%{_unitdir}/multi-user.target.wants/murphyd.service
%{_unitdir}/murphyd.service
%{_tmpfilesdir}/murphyd.conf
%if %{with dbus}
diff --git a/packaging/murphyd.service b/packaging/murphyd.service
index c31e165..dba4be5 100644
--- a/packaging/murphyd.service
+++ b/packaging/murphyd.service
@@ -10,4 +10,4 @@ Group=multimedia_fw
SmackProcessLabel=System
[Install]
-WantedBy=default.target
+WantedBy=multi-user.target