Hello community,

here is the log from the commit of package redis for openSUSE:Factory checked 
in at 2017-06-26 15:53:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/redis (Old)
 and      /work/SRC/openSUSE:Factory/.redis.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "redis"

Mon Jun 26 15:53:58 2017 rev:33 rq:505868 version:3.2.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/redis/redis.changes      2017-05-18 
20:52:00.532026828 +0200
+++ /work/SRC/openSUSE:Factory/.redis.new/redis.changes 2017-06-26 
15:54:05.964126396 +0200
@@ -1,0 +2,9 @@
+Wed Jun 21 16:28:36 UTC 2017 - [email protected]
+
+- cleanup service file
+- add redis.sysctl file
+- update README.SUSE
+  * add info for socket usage per service
+  * add info for limits per service (LimitNOFILE=10240)
+
+-------------------------------------------------------------------

New:
----
  redis.sysctl

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ redis.spec ++++++
--- /var/tmp/diff_new_pack.Al6AWP/_old  2017-06-26 15:54:07.627891785 +0200
+++ /var/tmp/diff_new_pack.Al6AWP/_new  2017-06-26 15:54:07.631891220 +0200
@@ -37,6 +37,7 @@
 Source3:        [email protected]
 Source4:        redis.tmpfiles.d
 Source5:        README.SUSE
+Source6:        %{name}.sysctl
 # PATCH-FIX-OPENSUSE -- openSUSE-style init script
 Patch0:         %{name}-initscript.patch
 # PATCH-MISSING-TAG -- See 
http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
@@ -96,6 +97,9 @@
 install -D -m 0640 redis.conf           
%{buildroot}%{_conf_dir}/default.conf.example
 install -D -m 0640 sentinel.conf        
%{buildroot}%{_conf_dir}/sentinel.conf.example
 
+# some sysctl stuff
+install -D -m 0644 %{S:6}               
%{buildroot}%{_sysconfdir}/sysctl.d/00-redis.conf
+
 #
 # init
 #
@@ -166,6 +170,7 @@
 %defattr(-,root,root,-)
 %doc 00-RELEASENOTES BUGS CONTRIBUTING COPYING README.md
 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
+%config(noreplace) %{_sysconfdir}/sysctl.d/00-redis.conf
 %{_bindir}/redis-*
 %{_sbindir}/redis-*
 %{_sbindir}/rc%{name}

++++++ README.SUSE ++++++
--- /var/tmp/diff_new_pack.Al6AWP/_old  2017-06-26 15:54:07.663886709 +0200
+++ /var/tmp/diff_new_pack.Al6AWP/_new  2017-06-26 15:54:07.663886709 +0200
@@ -13,13 +13,25 @@
 
 If you want to run more than one instance you also have to change the
 socket path and/or the ip:port combination.
+ e.g. /var/run/redis/otherapp.sock
+
+If you plan to use redis in combination with apache, then you should
+add 'redis' to apache group and set 'unixsocketperm 770':
+$ usermod -a -G redis wwwrun
+$ systemctl restart apache2
+then apache is able to connect to redis socket
 
 Also make sure if you copy configurations from somewhere, that "daemonize"
 should be set to "no".
 
-3. create the database dir:
+3a. create the database dir:
 $ install -d -o redis -g redis -m 0750 /var/lib/redis/otherapp/
 
+3b. add limits (ulimit) to each service
+$ install -d -m 0755 /etc/systemd/system/[email protected]
+$ echo "[Service]
+LimitNOFILE=10240" > /etc/systemd/system/[email protected]/limits.conf
+
 4. systemctl start redis@otherapp
 5. systemctl enable redis@otherapp
 

++++++ redis.sysctl ++++++
### remove redis Warnings about

# WARNING: The TCP backlog setting of 511 cannot be enforced because
#  /proc/sys/net/core/somaxconn is set to the lower value of 128.
net.core.somaxconn=512

# WARNING overcommit_memory is set to 0! Background save may fail
# under low memory condition. To fix this issue add
# 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or
# run the command 'sysctl -w vm.overcommit_memory=1' for this to take
# effect.
vm.overcommit_memory=1
++++++ [email protected] ++++++
--- /var/tmp/diff_new_pack.Al6AWP/_old  2017-06-26 15:54:07.735876557 +0200
+++ /var/tmp/diff_new_pack.Al6AWP/_new  2017-06-26 15:54:07.739875994 +0200
@@ -12,9 +12,5 @@
 ExecStart=/usr/sbin/redis-server /etc/redis/%i.conf
 Restart=on-failure
 
-#ExecStart=/usr/sbin/openvpn --daemon --suppress-timestamps --writepid 
/var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
-#ExecReload=/sbin/killproc -p /var/run/openvpn/%i.pid -HUP /usr/sbin/openvpn
-
 [Install]
 WantedBy=multi-user.target redis.target
-


Reply via email to