Small bug in riak/riak-cs debian init script

Anton Khalikov anton at
Fri Sep 26 07:51:04 EDT 2014

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"

Best regards
Anton Khalikov

More information about the riak-users mailing list