refactor runner and command
set daemon name
create log dir
refactor code format