From 28ca0c05059f53922e5af1cd1d6f152ba1701799 Mon Sep 17 00:00:00 2001 From: Alexey Kardapoltsev Date: Sun, 26 Apr 2015 15:07:55 +0500 Subject: [PATCH] fix debian systemV init script status command #552 --- .../systemloader/systemv/start-debian-template | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemv/start-debian-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemv/start-debian-template index cb462c495..7b252942d 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemv/start-debian-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/systemloader/systemv/start-debian-template @@ -70,22 +70,7 @@ case "$1" in exit $? ;; status) - start-stop-daemon --status --pidfile "$PIDFILE" - case "$?" in - 0) - echo "${{app_name}} is running" - ;; - 1) - echo "${{app_name}} is not running and the pid file exists" - ;; - 3) - echo "${{app_name}} is not running" - ;; - *) - echo "Unable to determine ${{app_name}} status" - ;; - esac - exit $? + status_of_proc -p "$PIDFILE" "$RUN_CMD" ${{app_name}} && exit 0 || exit $? ;; *) log_daemon_msg "Usage: /etc/init.d/${{app_name}} {start|stop|restart|status}"