One more question I am getting the error:

Unknown id: - /home/kevin/riak-1.2.1/dev/dev1/bin/riak

Here is a snippet of the raik script that I am using:

        # su - riak -c "$DAEMON $DAEMON_ARGS" || return 2
        su - /home/kevin/riak-1.2.1/dev/dev1/bin/riak -c "$DAEMON
$DAEMON_ARGS" || return 2
        su - /home/kevin/riak-1.2.1/dev/dev2/bin/riak -c "$DAEMON
$DAEMON_ARGS" || return 2
        su - /home/kevin/riak-1.2.1/dev/dev3/bin/riak -c "$DAEMON
$DAEMON_ARGS" || return 2
        su - /home/kevin/riak-1.2.1/dev/dev4/bin/riak -c "$DAEMON
$DAEMON_ARGS" || return 2

I am wondering if the directory /home does not exist on start up. Where is a
typical place to put these if that is the problem? Again because of disk
space I would rather only copy what I absolutely need.

-----Original Message-----
From: riak-users [mailto:riak-users-boun...@lists.basho.com] On Behalf Of
Shane McEwan
Sent: Wednesday, November 07, 2012 9:54 AM
To: riak-users@lists.basho.com
Subject: Re: Cluster on startup.

If you edit /etc/init.d/riak you should see a line like:

         su - riak -c "$DAEMON $DAEMON_ARGS" || return 2

in the "do_start" function.

If you change that line into the following 4 lines:

         su - riak -c "/path/to/your/riak/dev1/bin/riak $DAEMON_ARGS" ||
return 2
         su - riak -c "/path/to/your/riak/dev2/bin/riak $DAEMON_ARGS" ||
return 2
         su - riak -c "/path/to/your/riak/dev3/bin/riak $DAEMON_ARGS" ||
return 2
         su - riak -c "/path/to/your/riak/dev4/bin/riak $DAEMON_ARGS" ||
return 2

it should start all your Riak nodes on boot.

On 07/11/12 15:28, Kevin Burton wrote:
> The problem I see is that since this script is just functions if I run 
> it then it will do nothing as the functions are not called. Is there 
> some kind of "include" that I am missing?
>
> Thank you for the link for the tutorial. I am still not sure what the 
> sequence should be for calling your script on startup. All of the 
> examples that I have seen startup a single executable. It looks like I 
> need to either include your script into another script and start it or .
> . . .

>

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to