Skip to content

Commit

Permalink
Fix consul logging for sysvinit provider
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed Apr 15, 2016
1 parent 38ad094 commit c66698f
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 c66698f

Please sign in to comment.