Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rb:startstopapache1 [19/09/2011 18:59]
andrew
rb:startstopapache1 [10/10/2013 14:21] (current)
Line 9: Line 9:
   ACTION=${1}   ACTION=${1}
   ​   ​
-  #This must be run as user wworks+  #This must be run as user web
-  if [ "​${USER}"​ = "wworks" ]; then +  if [ "​${USER}"​ = "web" ]; then 
-          #echo "​Running as user wworks"+          #echo "​Running as user web"
           #echo " "           #echo " "
           #do something to keep if happy           #do something to keep if happy
           DUMMY=0           DUMMY=0
   else   else
-          echo "​Sorry,​ you need to be the wworks ​user to run this script."​+          echo "​Sorry,​ you need to be the web user to run this script."​
           exit 1           exit 1
   fi   fi
   ​   ​
   echo "This will stop or start all running instances of apache on this server."​   echo "This will stop or start all running instances of apache on this server."​
-  echo "If you want to restart an individual ​Casino ​web server DO NOT USE THIS!!!! Press Ctrl-c NOW!"+  echo "If you want to restart an individual web server DO NOT USE THIS!!!! Press Ctrl-c NOW!"
   sleep 10   sleep 10
   ​   ​
Line 37: Line 37:
   ​   ​
   ​   ​
-  #​Start ​casino ​starts or stops+  #​Start ​app starts or stops
   ​   ​
-  for CASINO in bar boyl gm ppy+  for CASINO in cas1 cas2 cas3 cas4
   do   do
           echo "​Casino is ${CASINO}, acton is ${ACTION}"​           echo "​Casino is ${CASINO}, acton is ${ACTION}"​
Line 47: Line 47:
   ​   ​
   exit 0   exit 0
 +
   ​   ​

rb/startstopapache1.txt · Last modified: 10/10/2013 14:21 (external edit)