thias pushed to lsyncd (el6). "Update lsyncd to 2.1.5 and add LSYNCD_USER support in sysconfig file"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 07:28:50 UTC 2015


>From 17adb9e11f691ebddbd7469054b3d9c5b7ca1ce7 Mon Sep 17 00:00:00 2001
From: Matthias Saou <matthias at saou.eu>
Date: Tue, 7 Apr 2015 09:28:23 +0200
Subject: Update lsyncd to 2.1.5 and add LSYNCD_USER support in sysconfig file


diff --git a/lsyncd.init b/lsyncd.init
index 6c46d4d..0b908fd 100644
--- a/lsyncd.init
+++ b/lsyncd.init
@@ -35,7 +35,7 @@ start() {
                 RETVAL=1
                 failure
         else
-                daemon /usr/bin/lsyncd $LSYNCD_OPTIONS
+                daemon ${LSYNCD_USER:+--user ${LSYNCD_USER}} /usr/bin/lsyncd $LSYNCD_OPTIONS
                 RETVAL=$?
                 [ $RETVAL -eq 0 ] && touch $thelock
         fi;
diff --git a/lsyncd.spec b/lsyncd.spec
index 693e0ee..888fc1c 100644
--- a/lsyncd.spec
+++ b/lsyncd.spec
@@ -1,6 +1,6 @@
 Name:           lsyncd
-Version:        2.1.4
-Release:        4%{?dist}.1.1
+Version:        2.1.5
+Release:        0%{?dist}
 Summary:        File change monitoring and synchronization daemon
 Group:          Applications/Internet
 License:        GPLv2+
@@ -88,6 +88,10 @@ if [ "$1" -ge "1" ]; then
 fi
 
 %changelog
+* Wed Apr  1 2015 Matthias Saou <matthias at saou.eu> - 2.1.5-0
+- Update to 2.1.5.
+- Add LSYNCD_USER support in sysconfig file.
+
 * Tue Nov 18 2014 Lubomir Rintel <lkundrak at v3.sk> - 2.1.4-4.1.1
 - Fix bad shell argument escaping
 
diff --git a/lsyncd.sysconfig b/lsyncd.sysconfig
index 9acabe5..b91ae04 100644
--- a/lsyncd.sysconfig
+++ b/lsyncd.sysconfig
@@ -4,3 +4,4 @@
 #LSYNCD_OPTIONS="-pidfile /var/run/lsyncd.pid /etc/lsyncd.conf"
 
 #LSYNCD_OPTIONS=" "
+#LSYNCD_USER=""
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lsyncd.git/commit/?h=el6&id=17adb9e11f691ebddbd7469054b3d9c5b7ca1ce7


More information about the scm-commits mailing list