Merge "Log tripleo services to syslog"

This commit is contained in:
Jenkins 2014-08-22 15:48:00 +00:00 committed by Gerrit Code Review
commit 42f751106c
2 changed files with 9 additions and 2 deletions

View File

@ -38,7 +38,11 @@ if [ "$DIB_INIT_SYSTEM" == "upstart" ] ; then
start on runlevel [2345]
stop on runlevel [016]
respawn
exec os-collect-config
# We're logging to syslog
console none
exec os-collect-config 2>&1 | logger -t os-collect-config
eof
elif [ "$DIB_INIT_SYSTEM" == "systemd" ] ; then

View File

@ -128,7 +128,10 @@ respawn
# not hit the default of 10 times in 5 seconds. Make it 2 times in 5s.
respawn limit 2 5
exec start-stop-daemon --start -c $user --exec $install_dir/bin/$cmd -- $args
# We're logging to syslog
console none
exec start-stop-daemon --start -c $user --exec $install_dir/bin/$cmd -- $args 2>&1 | logger -t $name
post-start $POSTSTART
EOF