Open jnguiot opened 2 years ago
I wonder if this is a duplicate of https://github.com/voxpupuli/puppet-redis/issues/386.
I think this is fixed by https://github.com/voxpupuli/puppet-redis/commit/b7f7478c4db6f57b2b724e97ae4ad86be8c68338 Can you confirm?
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
The service doesn't stop properly:
The
ExecStop
did not not stop the service and returns a failure.What behaviour did you expect instead
The ExecStop should stop the service without error
Output log
Any additional information you'd like to impart
The
redis-cli
in theExecStop
does not connect to the right binding address. Thus, it fails. However, since redis is password protected (requirepass
) , it will also fails. And I am not sure we should insert the password into the service file. My recommendation would be to be closer to the originalredis-server
systemd file and useExecStop=/bin/kill -s TERM $MAINPID
in https://github.com/voxpupuli/puppet-redis/blob/4a8d7811da5fd610b60c4b67f195f759e59f851c/templates/service_templates/redis.service.epp#L22