Hi everyone,

Today I installed redis-2.8.19 port through pkg_add on my OpenBSD 5.7
GENERIC.MP#767 i386 .
When starting it via rc.d script I always experience failures:

# /etc/rc.d/redis -d start
doing _rc_parse_conf
doing _rc_quirks
redis_flags >YES<
doing _rc_read_runfile
doing rc_check
redis
doing rc_pre
doing rc_start
[14905] 23 Aug 20:11:54.936 # Fatal error, can't open config file 'YES'
doing _rc_rm_runfile
(failed)

Flags passed to redis-server (daemon_flags="/etc/redis/redis.conf") turn
into 'YES' string somehow.
I have added the line:
redis_flags=YES
to /etc/rc.conf.local, but I thought that's standard for services that
should start at boot.
To start redis successfully I had to change /etc/rc.d/redis as follows:

# diff redis.orig redis
6c6
< daemon_flags="/etc/redis/redis.conf"
---
> startup_flags="/etc/redis/redis.conf"
16a17,20
> }
>
> rc_start() {
>        ${rcexec} "${daemon} ${startup_flags}"

Can anyone confirm/deny having this problem with redis?
Is there some problem with my configuration or bug in the startup scripts?
For the record, I get my packages from this mirror:

# echo $PKG_PATH
ftp://ftp.icm.edu.pl/pub/OpenBSD/5.7/packages/i386/

Regards,
Mateusz

Reply via email to