trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r918103 - /incubator/trafficserver/traffic/trunk/rc/trafficserver.in
Date Tue, 02 Mar 2010 16:31:19 GMT
Author: zwoop
Date: Tue Mar  2 16:31:19 2010
New Revision: 918103

URL: http://svn.apache.org/viewvc?rev=918103&view=rev
Log:
TS-225: Fix startup script for RedHat Linux (no idea what happend to the previous commit).

Modified:
    incubator/trafficserver/traffic/trunk/rc/trafficserver.in

Modified: incubator/trafficserver/traffic/trunk/rc/trafficserver.in
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/rc/trafficserver.in?rev=918103&r1=918102&r2=918103&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/rc/trafficserver.in (original)
+++ incubator/trafficserver/traffic/trunk/rc/trafficserver.in Tue Mar  2 16:31:19 2010
@@ -239,7 +239,7 @@
 		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
 		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
 	    esac
-        elif [ "$DISTRIB_ID" = "fedora" ]; then
+        elif [ "$DISTRIB_ID" = "fedora" -o "$DISTRIB_ID" = "redhat" ]; then
             action "Starting $prog:" forkdaemon $TC_DAEMON $TC_DAEMON_ARGS
         else
             echo "This script needs to be ported to this OS"
@@ -254,7 +254,7 @@
 		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
 		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
 	    esac
-        elif [ "$DISTRIB_ID" = "fedora" ]; then
+        elif [ "$DISTRIB_ID" = "fedora" -o "$DISTRIB_ID" = "redhat" ]; then
             action "Stopping $prog:" killproc -p $TC_PIDFILE $TC_DAEMON
             action "Stopping $prog:" killproc -p $TM_PIDFILE $TM_DAEMON
             action "Stopping $prog:" killproc -p $TS_PIDFILE $TS_DAEMON
@@ -294,7 +294,7 @@
 		    log_end_msg 1
 		    ;;
 	    esac
-        elif [ "$DISTRIB_ID" = "fedora" ]; then
+        elif [ "$DISTRIB_ID" = "fedora" -o "$DISTRIB_ID" = "redhat" ]; then
             $0 'stop'
             $0 'start'
         else
@@ -303,7 +303,7 @@
         fi
 	;;
   status)
-        if [ "$DISTRIB_ID" = "fedora" ]; then
+        if [ "$DISTRIB_ID" = "fedora" -o "$DISTRIB_ID" = "redhat" ]; then
             status -p $PIDFILE $PROGRAM
         else
             echo "This script needs to be ported to this OS"
@@ -311,7 +311,7 @@
         fi
         ;;
   condrestart)
-        if [ "$DISTRIB_ID" = "fedora" ]; then
+        if [ "$DISTRIB_ID" = "fedora" -o "$DISTRIB_ID" = "redhat" ]; then
             if ! $0 'status'
             then
                 $0 'stop'
@@ -327,7 +327,7 @@
 	#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
 	#echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
 	    echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
-        elif [ "$DISTRIB_ID" = "fedora" ]; then
+        elif [ "$DISTRIB_ID" = "fedora" -o "$DISTRIB_ID" = "redhat" ]; then
             echo "Usage: $0 {start|stop|status|restart|condrestart}"
         else
             echo "This script needs to be ported to this OS"



Mime
View raw message