diff --git a/bin/cowrie b/bin/cowrie index 60da89e4..b751d320 100755 --- a/bin/cowrie +++ b/bin/cowrie @@ -59,15 +59,18 @@ cowrie_stop () { fi } +cowrie_usage() { + echo "usage: $0 " +} + ################################################################################ ## Main script ################################################################################ if [ "$#" = 0 ] then - echo "Usage: $0 " - echo 'Command can be "start" or "stop"' - exit 0 + cowrie_usage + exit 1 fi find_cowrie_directory $0 @@ -89,5 +92,9 @@ do status) cowrie_status ;; + *) + cowrie_usage + exit 1 + ;; esac done