do not stop deamon, check for its status

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
make it easier to test our new helper by extracting it
tests to make sure we run ok in ubuntu and centos
Merge pull request #20 from alfredodeza/5678

do not stop mon deamon, check for its status

Reviewed-by: Sage Weil <sage@inktank.com>