Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds log to not manage /var/run/redis with systemd (#204)
* The existence of /var/run/redis causes the startup of redis-server via systemd to fail on debian systems with redis-server >= 3.2.8-2: ``` May 18 19:17:54 debian-8 systemd[1]: Starting Advanced key-value store... May 18 19:17:54 debian-8 systemd[803]: Failed at step RUNTIME_DIRECTORY spawning /bin/run-parts: File exists May 18 19:17:54 debian-8 systemd[804]: Failed at step RUNTIME_DIRECTORY spawning /usr/bin/redis-server: File exists May 18 19:17:54 debian-8 systemd[1]: redis-server.service: control process exited, code=exited status=233 May 18 19:17:54 debian-8 systemd[1]: Failed to start Advanced key-value store. May 18 19:17:54 debian-8 systemd[1]: Unit redis-server.service entered failed state. May 18 19:17:54 debian-8 systemd[1]: redis-server.service holdoff time over, scheduling restart. ``` * It will actually eventually start, but the first run will fail * The default unit file for redis-server in debian jessie-backports contains `RuntimeDirectory=redis`, see [this commit](https://github.com/lamby/pkg-redis/commit/1cecea5abcb2ce05beacd4347977634d06c59cef). * Adds logic to not manage the /var/run/redis directory if systemd present
- Loading branch information