Permalink
Browse files

Always redirect "run" script stderr to stdout so it is available to s…

…vlogd
  • Loading branch information...
1 parent 3db7c3c commit 4275cc076d2bbe83ab3cc4e3bea04832c9198d07 @purcell committed Nov 29, 2012
Showing with 11 additions and 11 deletions.
  1. +1 −1 ferret-server-run
  2. +1 −1 haproxy-run
  3. +1 −1 kirk-run
  4. +1 −1 maintenance-run
  5. +1 −1 memcached-run
  6. +1 −1 mongrel-run
  7. +1 −1 nginx-run
  8. +1 −1 thin-run
  9. +1 −1 thinking-sphinx-run
  10. +1 −1 unicorn-run
  11. +1 −1 varnish-run
View
@@ -1,4 +1,4 @@
#!/bin/bash -e
. ../../bootstrap
-RAILS_ROOT=$APP_DIR exec ferret_server -e production run
+RAILS_ROOT=$APP_DIR exec ferret_server -e production run 2>&1
View
@@ -38,4 +38,4 @@ listen stats 127.0.0.1:$(($PORT - 2))
mode http
stats uri /
END
-exec haproxy -db -f haproxy.conf
+exec haproxy -db -f haproxy.conf 2>&1
View
@@ -2,4 +2,4 @@
. ../../bootstrap
-cd $APP_DIR && exec kirk start
+cd $APP_DIR && exec kirk start 2>&1
View
@@ -9,4 +9,4 @@ if [ -z "$PORT" ]; then
exit 2
fi
-exec $(maybe_bundled maintenance_server) $PORT
+exec $(maybe_bundled maintenance_server) $PORT 2>&1
View
@@ -8,4 +8,4 @@ if [ -z "$PORT" ]; then
exit 2
fi
-exec memcached start -p $PORT
+exec memcached start -p $PORT 2>&1
View
@@ -8,4 +8,4 @@ if [ -z "$PORT" ]; then
exit 2
fi
-exec mongrel_rails start -e production -p $PORT -c $APP_DIR
+exec mongrel_rails start -e production -p $PORT -c $APP_DIR 2>&1
View
@@ -118,4 +118,4 @@ http {
}
EOF
-exec nginx -p $PWD/ -c nginx.conf || echo "do you need to create the symlink '$BASE/bin/nginx?'"
+exec nginx -p $PWD/ -c nginx.conf 2>&1 || echo "do you need to create the symlink '$BASE/bin/nginx?'"
View
@@ -8,4 +8,4 @@ if [ -z "$PORT" ]; then
exit 2
fi
-exec thin start -e production -p $PORT -c $APP_DIR
+exec thin start -e production -p $PORT -c $APP_DIR 2>&1
View
@@ -3,4 +3,4 @@
. ../../bootstrap
PORT=$(basename $(pwd)|awk -F- '{print $2}')
-cd $APP_DIR && RAILS_ENV=production $(maybe_bundled rake) ts:in && sleep 300
+cd $APP_DIR && RAILS_ENV=production $(maybe_bundled rake) ts:in && sleep 300 2>&1
View
@@ -119,7 +119,7 @@ fi
if [ ! $RUNNING ]; then
echo "Starting unicorn"
- cd $APP_DIR && unicorn_rails -E production -c $THIS_DIR/unicorn.rb -D
+ cd $APP_DIR && unicorn_rails -E production -c $THIS_DIR/unicorn.rb -D 2>&1
sleep 2
CUR_PID=$(cat $CUR_PID_FILE)
fi
View
@@ -88,4 +88,4 @@ sub vcl_deliver {
}
EOF
-exec varnishd -a 127.0.0.1:$PORT -F -f varnish.conf -s file,$TEMP_BASE_DIR/data,200MB -n $VARNISH_NAME || echo "do you need to create the symlink '$BASE/varnishd?'"
+exec varnishd -a 127.0.0.1:$PORT -F -f varnish.conf -s file,$TEMP_BASE_DIR/data,200MB -n $VARNISH_NAME 2>&1 || echo "do you need to create the symlink '$BASE/varnishd?'"

0 comments on commit 4275cc0

Please sign in to comment.