redis-2.8.19 port startup problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

redis-2.8.19 port startup problem

Mateusz Jemielity
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 | Threaded
Open this post in threaded view
|

Re: redis-2.8.19 port startup problem

Jeremie Courreges-Anglas-2

Hi Mateusz,

Mateusz Jemielity <[hidden email]> writes:

[...]

> Can anyone confirm/deny having this problem with redis?
> Is there some problem with my configuration or bug in the startup scripts?

The problem lies in your configuration.  Please see the rc.d(8) manpage
and the FAQ:

  http://www.openbsd.org/faq/faq10.html#rc

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: redis-2.8.19 port startup problem

Mateusz Jemielity
I changed /etc/rc.conf.local to read redis_flags= (without the YES) and the
original redis startup script does work correctly.
So it was indeed configuration problem. Thanks for clarification.

- Mateusz

On Sun, Aug 23, 2015 at 9:13 PM, Jérémie Courrèges-Anglas <[hidden email]>
wrote:

>
> Hi Mateusz,
>
> Mateusz Jemielity <[hidden email]> writes:
>
> [...]
>
> > Can anyone confirm/deny having this problem with redis?
> > Is there some problem with my configuration or bug in the startup
> scripts?
>
> The problem lies in your configuration.  Please see the rc.d(8) manpage
> and the FAQ:
>
>   http://www.openbsd.org/faq/faq10.html#rc
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>
Reply | Threaded
Open this post in threaded view
|

Re: redis-2.8.19 port startup problem

Jeremie Courreges-Anglas-2
Mateusz Jemielity <[hidden email]> writes:

> I changed /etc/rc.conf.local to read redis_flags= (without the YES) and the
> original redis startup script does work correctly.
> So it was indeed configuration problem. Thanks for clarification.

Well, it probably works when you manually start / stop the service.  But
if you want to start redis at boot you should add redis to pkg_scripts
(and then no need to set redis_flags if you use the defaults).

On a side note, I didn't know this list was still usable.  I think you'd
better report ports problems on ports@ in the future.

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE