trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch 8.0.x updated: Sending stdout and stderr to traffic.out and got rid of traffic_server.stdout and traffic_server.stderr
Date Thu, 28 Jun 2018 16:02:59 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.0.x by this push:
     new 0d7aa00  Sending stdout and stderr to traffic.out and got rid of traffic_server.stdout
and traffic_server.stderr
0d7aa00 is described below

commit 0d7aa0048047394bb11c2cf684ad508f7035a4c7
Author: Bryan Call <bcall@apache.org>
AuthorDate: Wed Jun 27 18:13:05 2018 -0700

    Sending stdout and stderr to traffic.out
    and got rid of traffic_server.stdout and traffic_server.stderr
    
    (cherry picked from commit 52f667d5651504fbabd5c65a9ab4a8e611fcc6f1)
---
 rc/trafficserver.in         | 6 +++---
 rc/trafficserver.service.in | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/rc/trafficserver.in b/rc/trafficserver.in
index 347d366..95d3274 100644
--- a/rc/trafficserver.in
+++ b/rc/trafficserver.in
@@ -113,9 +113,9 @@ TS_PIDFILE=${TS_PIDFILE:-$TS_BASE@exp_runtimedir@/server.lock}
 # number of times to retry check on pid lock file
 PIDFILE_CHECK_RETRIES=${PIDFILE_CHECK_RETRIES:-30}
 # stdout file of executable
-STDOUTLOG=${STDOUTLOG:-$TS_BASE@exp_logdir@/traffic_server.stdout}
+STDOUTLOG=${STDOUTLOG:-$TS_BASE@exp_logdir@/traffic.out}
 # stderr file of executable
-STDERRLOG=${STDERRLOG:-$TS_BASE@exp_logdir@/traffic_server.stderr}
+STDERRLOG=${STDERRLOG:-$TS_BASE@exp_logdir@/traffic.out}
 
 if [ -d /etc/rc.d/init.d ]; then
     SCRIPTNAME=/etc/rc.d/init.d/$NAME # Fedora
@@ -186,7 +186,7 @@ forkdaemon()
 
     # launch in background, i.e. fork
     # and redirect stdout and stderr to files
-    $* >> $STDOUTLOG 2>> $STDERRLOG &
+    $* --bind_stdout $STDOUTLOG --bind_stderr $STDERRLOG >> $STDOUTLOG 2>> $STDERRLOG
&
 
     while (( $i < $PIDFILE_CHECK_RETRIES ))
     do
diff --git a/rc/trafficserver.service.in b/rc/trafficserver.service.in
index b133966..41f585d 100644
--- a/rc/trafficserver.service.in
+++ b/rc/trafficserver.service.in
@@ -23,7 +23,7 @@ After=syslog.target network.target
 Type=simple
 EnvironmentFile=-/etc/sysconfig/trafficserver
 PIDFile=@exp_runtimedir@/manager.pid
-ExecStart=@exp_bindir@/traffic_manager $TM_DAEMON_ARGS
+ExecStart=@exp_bindir@/traffic_manager --bind_stdout @exp_logdir@/traffic.out --bind_stderr
@exp_logdir@/traffic.out $TM_DAEMON_ARGS
 ExecReload=@exp_bindir@/traffic_ctl config reload
 
 [Install]


Mime
View raw message