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
Feb 20 17:39:16 foo systemd[1]: Starting Advanced key-value store...
Feb 20 17:39:16 foo systemd[1]: redis.service: Failed with result 'protocol'.
Feb 20 17:39:16 foo systemd[1]: Failed to start Advanced key-value store.
This is because the Arch package uses ExecStart=/usr/bin/redis-server /etc/redis/redis.conf in the systemd unit file and expects supervised systemd in /etc/redis/redis.conf, which currently can't be set using the redis class.
Workaround
systemd::dropin_file { '10-supervised.conf':
unit => 'redis.service',
content => @(EOT),
# This file is managed by Puppet - DO NOT EDIT
[Service]
ExecStart=
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --supervised systemd
| EOT
}
Solution
Allow users to set supervised in the class.
The text was updated successfully, but these errors were encountered:
I noticed that Debian also doesn't set it in its unit file and uses Type=forking, at least in Debian 10. Then EL8 as Type=notify but passes --supervised systemd in ExecStart. We can't just set supervised systemd in redis.conf. I was thinking: should Archlinux instead be updated to set --supervised systemd in its unit file? That feels like the correct solution to me.
Awesome! For what it's worth, Beaker recently learned to run on Arch (thanks @bastelfreak!). In #438 I found out there are more failures. It'd be great if we could get the acceptance tests to all pass so we can properly say it's supported.
Problem
Using a simple single instance configuration fails to start:
systemctl status redis.service
:This is because the Arch package uses
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
in the systemd unit file and expectssupervised systemd
in/etc/redis/redis.conf
, which currently can't be set using the redis class.Workaround
Solution
Allow users to set
supervised
in the class.The text was updated successfully, but these errors were encountered: