From a1d6023d29eccbf11e24e05de0d76bc4434c7170 Mon Sep 17 00:00:00 2001 From: Jens Grassel Date: Thu, 26 May 2016 09:50:49 +0200 Subject: [PATCH] Fix typo in debian systemv script. An `if` construct was not properly closed by `fi` which led to errors when trying to start the system service. Furthermore a space was required within the `if` construct. --- .../archetypes/systemloader/systemv/start-debian-template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/systemloader/systemv/start-debian-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/systemloader/systemv/start-debian-template index ec685bded..a1b38a869 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/systemloader/systemv/start-debian-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/systemloader/systemv/start-debian-template @@ -43,9 +43,9 @@ start_daemon() { [ -d "/var/run/${{app_name}}" ] || install -d -o "$DAEMON_USER" -g "$DAEMON_GROUP" -m755 "/var/run/${{app_name}}" logfile="${{daemon_log_file}}" stdout_redirect="" - if [ ! -z "${logfile:-}"]; then + if [ ! -z "${logfile:-}" ]; then stdout_redirect=" >> ${{logdir}}/${{app_name}}/$logfile 2>&1" - if + fi if [ "$create_pidfile" = true ]; then start-stop-daemon --background --chdir ${{chdir}} --chuid "$DAEMON_USER" --make-pidfile --pidfile "$PIDFILE" --startas "$RUN_CMD" --start -- $RUN_OPTS "$stdout_redirect"