--> -->
VPS problem - server shut down.
#11
Create a bash script with

#!/bin/bash
#make-run.sh
#make sure a process is always running.

export DISPLAY=:0 #needed if you are running a simple gui app.

process=YourProcessName
makerun="/usr/bin/program"

if ps ax | grep -v grep | grep $process > /dev/null
        then
                exit
        else
        $makerun &
        fi
exit

Add a cronjob to run it every 5 mins or so
Thanks given by:


Messages In This Thread
VPS problem - server shut down. - by Cemer - 23 Jul 12, 09:16PM
RE: VPS problem - server shut down. - by Jg99 - 23 Jul 12, 09:49PM
RE: VPS problem - server shut down. - by Cemer - 23 Jul 12, 09:52PM
RE: VPS problem - server shut down. - by Jg99 - 23 Jul 12, 09:55PM
RE: VPS problem - server shut down. - by Cemer - 23 Jul 12, 10:04PM
RE: VPS problem - server shut down. - by Jg99 - 24 Jul 12, 01:09AM
RE: VPS problem - server shut down. - by Billybob - 24 Jul 12, 06:48AM


-->