Small bug in riak/riak-cs debian init script

Luke Bakken lbakken at basho.com
Fri Sep 26 10:21:45 EDT 2014


Thanks for the report Anton, I've created the following issue:

https://github.com/basho/node_package/issues/164
--
Luke Bakken
Engineer / CSE
lbakken at basho.com


On Fri, Sep 26, 2014 at 4:51 AM, Anton Khalikov <anton at khalikov.ru> wrote:
> Hello Basho guys
>
> I think we have found a small bug in riak/riak-cs debian init scripts
> (/etc/init.d/riak{,-cs}). When used in CRON, ie for restarting riak process
> on a schedule, init scripts fail because they don't set PATH variable to
> recommended value. Without setting proper PATH, init script is unable to
> find start-stop-daemon.
>
> Recommended value for PATH for debian init scripts can be found in
> /etc/init.d/ssh and many other debian init scripts and looks like:
>
> export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
> or
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
>
> --
> Best regards
> Anton Khalikov
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




More information about the riak-users mailing list