Commit 832ad2fe authored by Johannes Edmeier's avatar Johannes Edmeier Committed by Stephane Nicoll

Change redirect in initscript to support old bash

`&>>` syntax is bash version 4. This fix allows to support older
versions.

Fixes gh-4820
Closes gh-4829
parent cdc91330
...@@ -165,7 +165,7 @@ do_start() { ...@@ -165,7 +165,7 @@ do_start() {
pid=$(cat "$pid_file") pid=$(cat "$pid_file")
else else
checkPermissions || return $? checkPermissions || return $?
$command &>> "$log_file" & $command >> "$log_file" 2>&1 &
pid=$! pid=$!
disown $pid disown $pid
echo "$pid" > "$pid_file" echo "$pid" > "$pid_file"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment