Wednesday, January 21, 2009

A thttpd server start up script that kills the existing instance and restart the thttpd server (not requiring reboot)

#!/bin/sh
if [ -n "`pidof mythttpd`" ]; then
killall mythttpd 2>/dev/null
fi
/opt/sbin/mythttpd -C /opt/etc/mythttpd.conf

Its just a tip which you can use to automate your instincts to kill processes!!

No comments: