Merge "Log tripleo services to syslog"
This commit is contained in:
commit
42f751106c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user