#!/bin/sh set -e spawn-fcgi -a 0.0.0.0 -p 9101 -F 1 -f "php /var/www/html/racc/racc.php" time=$(date "+%Y%m%d") if [ ! -f "/var/www/html/data/log/${time}-racc.log" ]; then touch "/var/www/html/data/log/${time}-racc.log" fi tail -f "/var/www/html/data/log/${time}-racc.log"