Tuesday, February 06, 2024

Re: Second Redis instance?

> Giving opportunity to use /usr/local/etc/redis-FOO.conf
> /usr/local/etc/redis-BAR.conf respectively, as separate instances.
>
> How can I do the same under OpenBSD 7.4?

You could just copy the /etc/rc.d/redis file to /etc/rc.d/redis2 and modify the daemon_flags settings in it to use a separate config file.

Then
- rcctl enable redis2
- rcctl start redis2

I just tried that and it seems to work.

Louis

No comments:

Post a Comment