This script is based on the one Victor Belov posted here changed thus:
- directory and user names changed (ECLIPSEHOME, RUN_AS)
- -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 added to DAEMON_ARGS
- simple 3 generation log recycler
)
Making the daemon
- create the file /etc/init.d/openhab with your favourite editor - e.g.
sudo nano /etc/init.d/openhab - populate with the contents here, amend locations / usernames as appropriate
- save the file
- set execute permissions:
sudo chmod a+x openhab - update the startup environment
sudo update-rc.d openhab defaults - test the service
sudo service openhab start - after a couple of minutes you can point your browser at your sitemap and see the config you have defined.
No comments:
Post a Comment