From 0cb0a08aae506e747a5a57fbd98f8bc01886c440 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 15 Nov 2016 11:09:32 +0900 Subject: Modify spec and service file Change value of WantedBy field to multi-user.target Change-Id: I6fae41114ed53f461543c5351d2e5cef630c63bb Signed-off-by: Sangchul Lee --- packaging/murphy.spec | 4 +++- packaging/murphyd.service | 2 +- 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 -- cgit v1.2.3