systemctl cannot run redis with default config out of the box. Reproducible: Always Steps to Reproduce: 1. Have systemd installed and running 2. Install dev-db/redis 3. Run redis with `systemctl start redis` Actual Results: Terminal pauses for a while. Meanwhile in background redis server starts. I can see it with htop and logs inform you that everything is ok. Then I see that systemctl failed to run redis because of timeout. Expected Results: redis runs as a daemon It fact systemd expects to daemonize process by itself. But there's "daemonize yes" in /etc/redis.conf I guess it should be removed for systemd-based installations.
I'll take your word for it as I'm no systemd user ;) anyway, I fixed this by altering the openRC init script to it also does the daemonization and PID handling + 02 Dec 2014; Ultrabug <ultrabug@gentoo.org> redis-2.8.17.ebuild, + +files/redis-2.8.17-config.patch, files/redis.initd-4: + fix daemonization wrt #529050 +
Created attachment 393932 [details] emerge info
I had to comment these two lines in the redis.service file to get it to work, even with "daemonize no": {{{ [Service] #Type=forking #PIDFile=/var/run/redis/redis.pid ExecStart=/usr/sbin/redis-server /etc/redis.conf User=redis Group=redis }}}
I can confirm 2.8.17-r1 stable still does not work ootb on systemd. Service=simple is the way to go.
Please follow and give feedback on https://bugs.gentoo.org/show_bug.cgi?id=537384