aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/redis
AgeCommit message (Collapse)Author
2016-12-09redis: increase the max number of fds to actually match redis.confFrank Meerkoetter
Now that the processes no longer runs as root, we need to increase the limit for it. This only affects systemd based systems. Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-12-09redis: do not run as rootFrank Meerkoetter
Running a network facing daemon written in C as root is not a good idea. Introduce a redis system user/group for that. A drawback is that now redis can no longer increase the number of open fds to 10000 (MaxClients). If this is needed the ulimit needs to be tweaked in the init script or systemd unit file. This only affects systemd based systems. Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-12-09redis: log to syslogFrank Meerkoetter
Creating /var/log/redis.log requires root permissions to create the file. Use syslog instead so redis does not require root. This affects both sysv and systemd based systems. Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-12-09redis: do not expose the service to the network by defaultFrank Meerkoetter
Binding it to localhost is a safe default. This affects both sysv and systemd based systems. Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-12-09redis: add a systemd service fileFrank Meerkoetter
The redis.conf is changed on the fly to not daemonize redis. The reason for that is that with this appraoch we don't need special permissions to write to /var/run/. Signed-off-by: Frank Meerkoetter <frank@meerkoetter.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-15redis: fix hiredis build so it's less failure-prone and links properlyStephen Arnold
This patch resets the default OPT flags to -O2 and adds the missing ranlib command to index the static library. Signed-off-by: Stephen Arnold <sarnold@vctlabs.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23redis: stylizeAndrea Galbusera
* remove trailing whitespaces * run through oe-stylize Signed-off-by: Andrea Galbusera <gizero@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23redis: add redis.conf to CONFFILESAndrea Galbusera
Signed-off-by: Andrea Galbusera <gizero@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23redis: fix configuration file permissionsAndrea Galbusera
use 0644 instead of 0755 to install configuration file Signed-off-by: Andrea Galbusera <gizero@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-06-23redis: update to version 3.0.2Armin Kuster
This includes CVE-2015-4335. LICENSE checksum changed do to copyright update. Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15recipes: Unify indentationMartin Jansa
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-02-16redis: add new recipe for redis-2.6.9Kevin Baker
A recipe for Redis 2.6.9, an advanced key-value store. Needed some patching of Makefiles and deps to get it to work with OE. OE Specific configuration: This is built to override MALLOC and use libc's malloc instead of the provided jemalloc or tcmalloc that weren't building correctly. Also the default savepoint setting was updated in the default redis.conf to tune for a small embedded system. Known Bug: redis-cli eats all the input on a serial port - watch out when using the serial console with redis-cli. see https://github.com/antirez/linenoise/issues/38 Tested with Yocto "Danny" / armv7a. Signed-off-by: Kevin Baker <kevinb@ventureresearch.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>