#!/bin/sh # No .tap, for now rm *.tap # Determine whether we have an older .tap to use. if [ -f "web-shutdown.tap" ]; then TAP="web-shutdown.tap" else TAP="web.tap" if [ ! -f "web.tap" ]; then mktap web --resource-script=WeblogViewer.rpy --port 7777 fi fi # If there still is no .tap, it means something's wrong. if [ ! -f ${TAP} ]; then echo "Error: ${TAP} does not exist." exit 1 fi # Otherwise, assume all is well. # This script is not robust, but it works. twistd -n -f ${TAP} #tail -f twistd.log