Skip to content

Commit a1d6023

Browse files
committed
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.
1 parent 38d8353 commit a1d6023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/com/typesafe/sbt/packager/archetypes/systemloader/systemv/start-debian-template

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ start_daemon() {
4343
[ -d "/var/run/${{app_name}}" ] || install -d -o "$DAEMON_USER" -g "$DAEMON_GROUP" -m755 "/var/run/${{app_name}}"
4444
logfile="${{daemon_log_file}}"
4545
stdout_redirect=""
46-
if [ ! -z "${logfile:-}"]; then
46+
if [ ! -z "${logfile:-}" ]; then
4747
stdout_redirect=" >> ${{logdir}}/${{app_name}}/$logfile 2>&1"
48-
if
48+
fi
4949

5050
if [ "$create_pidfile" = true ]; then
5151
start-stop-daemon --background --chdir ${{chdir}} --chuid "$DAEMON_USER" --make-pidfile --pidfile "$PIDFILE" --startas "$RUN_CMD" --start -- $RUN_OPTS "$stdout_redirect"

0 commit comments

Comments
 (0)