#!/bin/bash # startdrs.sh source /etc/drs.conf openbox-session & if [ "$INHIBIT_BLANK" -eq "1" ] then xset s off xset -dpms else xset s off xset +dpms xset dpms 0 600 1800 fi while true do $KILL_CMD $CLEANUP_CMD # start application $APP_CMD & sleep 10 while true do pgrep $ALIVE_STRING if [ "$?" -eq "1" ] then # relaunch application if it terminates $APP_CMD & fi sleep 1 done exit 0 done