From 3b8fa0bf607a9cc621d73727433e06185aa8ec57 Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Sun, 17 Mar 2013 12:06:56 +0900 Subject: [PATCH] sync with master --- packaging/corewatcher.spec | 7 ++++++- src/corewatcher.service.in | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packaging/corewatcher.spec b/packaging/corewatcher.spec index 6ab6a21..e7f4206 100644 --- a/packaging/corewatcher.spec +++ b/packaging/corewatcher.spec @@ -43,6 +43,10 @@ install -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/corewatcher ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S10corewatcher ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc4.d/S10corewatcher +mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants +install -m 0644 corewatcher.service %{buildroot}%{_libdir}/systemd/system/corewatcher.service +ln -s ../corewatcher.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/corewatcher.service + %files %defattr(-,root,root,-) %config(noreplace) /etc/corewatcher/corewatcher.conf @@ -53,4 +57,5 @@ ln -s ../init.d/corewatcher %{buildroot}%{_sysconfdir}/rc.d/rc4.d/S10corewatcher %{_sysconfdir}/rc.d/init.d/corewatcher %{_sysconfdir}/rc.d/rc3.d/S10corewatcher %{_sysconfdir}/rc.d/rc4.d/S10corewatcher -%exclude %{_libdir}/systemd/system/corewatcher.service +%{_libdir}/systemd/system/corewatcher.service +%{_libdir}/systemd/system/multi-user.target.wants/corewatcher.service diff --git a/src/corewatcher.service.in b/src/corewatcher.service.in index a261532..0182ba4 100644 --- a/src/corewatcher.service.in +++ b/src/corewatcher.service.in @@ -5,7 +5,7 @@ After=sysinit.target [Service] Type=forking -ExecStart=@prefix@/bin/corewatcher +ExecStart=@prefix@/sbin/corewatcher [Install] WantedBy=multi-user.target -- 2.7.4