Description of problem:
In epel6 version the init script created a PID no matter if redis was configured as daemonized or not. In epel7 redis uses systemd unit file and PID will not be created. A solution floating around at the moment is to add the following:
ExecStartPost=/bin/sh -c echo $MAINPID > /var/run/redis/redis.pid
knowing the redis pid is important when multiple redis are running on the same box to set optimizations like defining affinity
additionally the unit file is not set to noreplace so changes will be reverted on update
Version-Release number of selected component (if applicable):
run redis with deamon set to false, and no pid will be created. perform the same action with the el6 version of redis and pid will be recreated
Steps to Reproduce:
1. spin up el6 redis
2. spin up el7 redis
3. set both to confs daemonize no
have a pid file created for redis running
> additionally the unit file is not set to noreplace so changes will be reverted on update
Unit files are NOT configuration files.
If you need to change it, use "systemctl edit redis"
This will create a /etc/systemd/system/redis.service.d/override.conf
Thank you, that is cool. I was not aware. That would work for a solution. I guess this can be closed.