Fix handling of admin socket. The current script already use
$RUN_DIR to define a default, which is /var/run. Replace the
explicit path from get_conf call and replace it with $RUN_DIR.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
status)
if daemon_is_running $name ceph-$type $id $pid_file; then
- get_conf asok "/var/run/ceph/ceph-$type.$id.asok" "admin socket"
+ get_conf asok "$RUN_DIR/ceph/ceph-$type.$id.asok" "admin socket"
echo -n "$name: running "
do_cmd "$BINDIR/ceph --admin-daemon $asok version 2>/dev/null" || echo unknown
elif [ -e "$pid_file" ]; then