You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Distribution: Ubuntu
Module version: 6.19.0
How to reproduce (e.g Puppet code you use)
Service template contains the parameter RuntimeDirectory which tells systemd to delete the dir when stopped. It was introduced more than 1 year ago (8749ce7).
If you use multiple redis instances it can cause issues if you stop one of the instances (it'll delete all sockets and pid files inside the dir). In that case, you need to stop all instances and start them again at the same time, otherwise, it'll not work (kind of race condition).
My suggestion would be to add the parameter RuntimeDirectoryPreserve=yes to the service template. The only drawback is that when you stop the service the runtime folder /var/run/redis will not be deleted.
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Service template contains the parameter
RuntimeDirectory
which tells systemd to delete the dir when stopped. It was introduced more than 1 year ago (8749ce7).If you use multiple redis instances it can cause issues if you stop one of the instances (it'll delete all sockets and pid files inside the dir). In that case, you need to stop all instances and start them again at the same time, otherwise, it'll not work (kind of race condition).
My suggestion would be to add the parameter
RuntimeDirectoryPreserve=yes
to the service template. The only drawback is that when you stop the service the runtime folder/var/run/redis
will not be deleted.The text was updated successfully, but these errors were encountered: