Skip to content

Commit

Permalink
Fix wierdness on 14.04 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
neogenix authored and adejanovski committed Nov 16, 2016
1 parent 57f18b5 commit fcbf9a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions debian/reaper.init
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ case "$1" in
echo "Already started"
else
echo "Starting $name"
cd "$dir"
if [ -z "$user" ]; then
sudo $cmd >> "$stdout_log" 2>> "$stderr_log" &
sudo $dir/$cmd >> "$stdout_log" 2>> "$stderr_log" &
else
sudo -u "$user" $cmd >> "$stdout_log" 2>> "$stderr_log" &
sudo -u "$user" $dir/$cmd >> "$stdout_log" 2>> "$stderr_log" &
fi
echo $! > "$pid_file"
if ! is_running; then
Expand Down Expand Up @@ -95,4 +94,4 @@ case "$1" in
;;
esac

exit 0
exit 0

0 comments on commit fcbf9a4

Please sign in to comment.