log output when installing and upgrading gerrit

It would be good to keep the command output and exit code when installing or
upgrading gerrit in case it doesn't work.

Change-Id: Ia93001706b4ea509797419b74716c23db47aaed1
This commit is contained in:
Khai Do 2013-12-09 22:26:41 +00:00
parent 90fbf574d1
commit 7cc5bae713

View File

@ -475,6 +475,7 @@ class gerrit(
File['/home/gerrit2/review_site/etc/secure.config']], File['/home/gerrit2/review_site/etc/secure.config']],
notify => Exec['gerrit-start'], notify => Exec['gerrit-start'],
unless => '/usr/bin/test -f /etc/init.d/gerrit', unless => '/usr/bin/test -f /etc/init.d/gerrit',
logoutput => true,
} }
# If a new gerrit.war was just installed, run the Gerrit "init" command. # If a new gerrit.war was just installed, run the Gerrit "init" command.
@ -493,6 +494,7 @@ class gerrit(
File['/home/gerrit2/review_site/etc/secure.config']], File['/home/gerrit2/review_site/etc/secure.config']],
notify => Exec['gerrit-start'], notify => Exec['gerrit-start'],
onlyif => '/usr/bin/test -f /etc/init.d/gerrit', onlyif => '/usr/bin/test -f /etc/init.d/gerrit',
logoutput => true,
} }
# Symlink the init script. # Symlink the init script.