Skip to content

Commit

Permalink
Merge pull request #308 from legal90/fox-logging
Browse files Browse the repository at this point in the history
Fix consul logging for sysvinit provider
  • Loading branch information
johnbellone committed Apr 18, 2016
2 parents 38ad094 + c66698f commit 5735613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/sysvinit.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ _start() {
start-stop-daemon --start --quiet --background \
--pidfile $pidfile<% unless @pid_file_external %> --make-pidfile<% end %> \
--chuid $user --chdir "<%= @directory %>" \
--startas /bin/bash -- -c "exec $exec <%= @daemon_options %> >$logfile 2>&1"
--startas /bin/bash -- -c "exec $exec <%= @daemon_options %> >> $logfile 2>&1"
}

_stop() {
Expand Down Expand Up @@ -64,7 +64,7 @@ _start() {
daemon \
--pidfile=$pidfile \
--user=$user \
" { $exec <%= @daemon_options %> &> $logfile & } ; echo \$! >| $pidfile "
" { $exec <%= @daemon_options %> &>> $logfile & } ; echo \$! >| $pidfile "
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
Expand Down

0 comments on commit 5735613

Please sign in to comment.