1 2 3 4 5 6 7 8
#!/bin/bash exec 2>&1 export TERM=linux . /etc/rc.conf . /etc/rc.d/functions stat_runit "Starting mediaserv" exec su mythtv -c "/usr/bin/mediaserv" 2>/dev/null wait