Skip to content

Commit

Permalink
Merge pull request #2 from palantir/bugfix/make-log-dir
Browse files Browse the repository at this point in the history
Ensure var/log gets created before use
  • Loading branch information
markelliot committed Sep 28, 2015
2 parents 5be51b9 + 42a1897 commit dd45023
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ start)
fi
printf "%-50s" "Running '$SERVICE'..."

# ensure pid directory exists
# ensure log and pid directories exist
mkdir -p "var/log"
mkdir -p "var/run"
PID=$(service/bin/$SERVICE $ARGS > var/log/$SERVICE-startup.log 2>&1 & echo $!)
sleep 1
Expand Down

0 comments on commit dd45023

Please sign in to comment.