Topic: Redis systemd problem
Hello.
After redis installation at CentOS 7 (full update) there is problem with launching redis service.
The proper /etc/systemd/system/multi-user.target.wants/redis.service in my case is:
[Unit]
Description=Redis persistent key-value database
After=network.target
[Service]
PermissionsStartOnly=true
ExecStartPre=-/usr/bin/mkdir /var/run/redis
ExecStartPre=/usr/bin/chown -R :redis /var/run/redis
ExecStartPre=/usr/bin/chmod g+w /var/run/redis
ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no
ExecStop=/usr/libexec/redis-shutdown
User=redis
Group=redis
[Install]
WantedBy=multi-user.target
and after every update I had to add this 3 lines with "ExecStartPre".
It is because of /run which is tmpfs -- https://blog.hqcodeshop.fi/archives/93- … stemd.html
Is the default redis systemd configuration from remi repo intended or I have some misconfiguration at my CentOS?
Regards.