TVHROOT="/opt/tvheadend" TVHNAME="tvheadend" TVHBIN="${TVHROOT}/bin/${TVHNAME}" TVHUSER="hts" # comment below your happy its working $TVHBIN start -C -u bts -g video -c /opt/tvh_dvrconfig_xbmc # use this to fork it into the background #$TVHBIN start -C -f -u hts -g video -c /opt/tvh_dvrconfig_xbmc