rpms/motion/F-17 motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch, NONE, 1.1 motion.spec, 1.16, 1.17

Tomasz Torcz ttorcz at rpmfusion.org
Sat Dec 8 19:29:58 CET 2012


Author: ttorcz

Update of /cvs/free/rpms/motion/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv31658

Modified Files:
	motion.spec 
Added Files:
	motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch 
Log Message:
* Sat Dec 08 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 3.3.0-trunkREV557.2
- fix logrotate snippet to use systemctl instead of (non-existant) /bin/service
  Fixes #26042604


motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch:
 motion.logrotate |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- NEW FILE motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch ---
>From 0e81a85851b9c4aa495b2dd697120df5ca53d660 Mon Sep 17 00:00:00 2001
From: Tomasz Torcz <tomek at pipebreaker.pl>
Date: Sat, 8 Dec 2012 10:38:42 +0100
Subject: [PATCH] there is no "/bin/service" in Fedora, use systemctl

---
 motion.logrotate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/motion.logrotate b/motion.logrotate
index b97f2f3..75ad7c2 100644
--- a/motion.logrotate
+++ b/motion.logrotate
@@ -5,6 +5,6 @@
     size 10M
     create 0600 root root
     postrotate
-        /bin/service motion reload  >/dev/null  2>&1 || true
+        /usr/bin systemctl reload-or-try-restart motion.service  >/dev/null  2>&1 || true
     endscript
 }
-- 
1.8.0.1



Index: motion.spec
===================================================================
RCS file: /cvs/free/rpms/motion/F-17/motion.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- motion.spec	6 Dec 2012 20:01:38 -0000	1.16
+++ motion.spec	8 Dec 2012 18:29:58 -0000	1.17
@@ -8,6 +8,7 @@
 URL:            http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
 Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Patch0:         motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch
+Patch1:         motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libjpeg-devel ffmpeg-devel zlib-devel
@@ -28,6 +29,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %configure --sysconfdir=%{_sysconfdir}/%{name} --without-optimizecpu --with-ffmpeg --without-mysql --without-pgsql
@@ -97,6 +99,10 @@
 %attr(0755,root,root) %{_initrddir}/%{name}
 
 %changelog
+* Sat Dec 08 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 3.3.0-trunkREV557.2
+- fix logrotate snippet to use systemctl instead of (non-existant) /bin/service
+  Fixes #26042604
+
 * Thu Dec 06 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 3.3.3-trunkREV557.1
 - synchronize with F-18 package version:
   - newest snapshot


More information about the rpmfusion-commits mailing list