Hi Roman,

Which "process management system" are you using? I have successfully run
Riak using monit and the fact that Riak runs in the background does not
cause issues.

For instance, this monit configuration will start/stop Riak as well as
monitor it. You must disable your system's init script for Riak if you want
monit to do the job instead.

check process riak
        with pidfile /var/run/riak/riak.pid
        start program = "/etc/init.d/riak start" with timeout 30 seconds
        stop program = "/etc/init.d/riak stop" with timeout 60 seconds
        alert [email protected]
                on { connection, timeout }
                with mail-format {
                        subject: [ALERT] $HOST: Riak Service - $EVENT
                        message: $DATE
Problem:
$HOST: Riak raised the following event: $EVENT
$DESCRIPTION
                }
                with reminder on 10 cycles
        if failed (url http://localhost:8098/ping and content == '^OK$')
                with timeout 15 seconds
                for 2 times within 5 cycles
                then alert
        if 3 restarts within 5 cycles then alert
        group riak

--
Luke Bakken
Engineer
[email protected]

On Wed, Jul 8, 2015 at 2:17 PM, Roman Shestakov <[email protected]>
wrote:

> Thanks, but i meant to run as foreground hidden process, without console.
>
> I need to run riak kv under specific process management system which
> controls process live cycle. It cant do it if the process is backgrounded.
>
> I really dont want ti hack the riak runner wrapper so though maybe there
> us sine trick.
>
> But in any case, it seems surprising that this option is missing as a
> standard
>
> Regards, Roman
>
> Sent from my iPhone
>
> On 8 Jul 2015, at 17:54, Cuyler Jones <[email protected]> wrote:
>
> Hi Roman --
>
> If riak is not currently running:
>
> bin/riak console
>
> If riak is currently running:
>
> bin/riak attach
>
>
>
> On Wed, Jul 8, 2015 at 9:41 AM, ROMAN SHESTAKOV <
> [email protected]> wrote:
>
>> hello,
>>
>> is there any way to start RIAK_KV as a foreground process instead of as a
>> demon process, which is what "bin/riak start” does?
>>
>> Regards, Roman
>> _______________________________________________
>> riak-users mailing list
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to