Keep alive script

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
djrm
Starting Member
Starting Member
Posts: 8
Joined: Sat Jul 16, 2011 7:02 pm

Keep alive script

Post by djrm »

Greetings all.

I've installed DomotiGa server onto my OpenRD arm system and I'm happy with the results although it streaches the resources available on the system. This could explain why it stopps running from time to time for no aparent reason. When it stops then the device datas stop ebing logged so I have come up with this simple solution after having problems with the init.d daemon I wanted to use. The script will re-run itself when the server stops. It's been in use for a few days now and the logs are complete now since its been in use so I'm sticking with it just like it is.

Code: Select all

#keepalive.domotiga
/home/david/domotiga/DomotiGaServer.gambas
/home/david/domotiga/keepalive.domotiga
remember to make the script executable and then use it to start the server instead of the direct command. I expect that if you close the console it is started from then the server will stop. I starterd it detached from the console by adding an '&' after the command, this way the server messages are still visible.

hth DAvid.
Post Reply

Return to “DomotiGa Forum”