summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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