make systemctl script more robust

add case statement
correct status option
other minor fixes