summaryrefslogtreecommitdiff
path: root/packaging/murphy.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/murphy.spec')
-rw-r--r--packaging/murphy.spec4
1 files changed, 3 insertions, 1 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}