HVAC Wiki

All things related to HVAC

User Tools

Site Tools


suppliers:hvac.io:vigilia:installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
suppliers:hvac.io:vigilia:installation [2020/07/22 15:01] – old revision restored (2015/07/30 01:52) 95.91.41.38suppliers:hvac.io:vigilia:installation [2020/07/22 15:01] – old revision restored (2015/08/20 17:56) 95.91.41.38
Line 11: Line 11:
 They can all be installed on the same machine, or on separate servers and devices, depending on your network architecture. They can all be installed on the same machine, or on separate servers and devices, depending on your network architecture.
  
 +
 +Once this is done, you might want to take a look at [[#Adding Vigilia as a Service]]
 ===== Database ===== ===== Database =====
 For the time being, Vigilia only supports [[http://www.tokutek.com/tokumx-for-mongodb/|TokuMX]]. For the time being, Vigilia only supports [[http://www.tokutek.com/tokumx-for-mongodb/|TokuMX]].
Line 23: Line 25:
  
  
-Download and install by following the instructions on this [[http://www.tokutek.com/tokumx-for-mongodb/download-community/|page]].+Download and install by following the instructions on this [[https://www.percona.com/downloads/percona-tokumx-community-edition|page]].
  
 ===== Vigilia Server ===== ===== Vigilia Server =====
Line 29: Line 31:
 For maximum speed, we recommend you install the Vigilia server on the same machine as the database. For maximum speed, we recommend you install the Vigilia server on the same machine as the database.
  
-Vigilia server runs on [[www.java.com|Java]], meaning it can work on Linux, Windows and Mac.+Vigilia server runs on [[http://www.java.com|Java]], meaning it can work on Linux, Windows and Mac.
  
  
Line 59: Line 61:
  
 ===== Loggers ===== ===== Loggers =====
 +
 +Wacnet...
 +
 +
 +===== Adding Vigilia as a Service =====
 +
 +You might want to make sure the Vigilia server always starts as soon as the server boots, or that it restores itself in case of a crash.
 +
 +For this, you'll have to add Vigilia as a service.
 +
 +Start by creating a file named "**vigilia.conf**".
 +
 +Open it and paste the following:
 +
 +
 +<code shell>
 +
 +description "Vigilia Server"
 +author "Christian Fortin, HVAC.IO"
 +
 +start on runlevel [2345]
 +stop on runlevel [!2345]
 +
 +
 +#Respawn the process if it crashes
 +#If it respawns more than 10 times in 60 seconds stop
 +respawn
 +respawn limit 10 60
 +
 +expect fork
 +
 +#replace PATH-TO-THE-JAR with something like /home/hvacio/vigilia
 +#replace PORT with the desired port number
 +script
 +    cd PATH-TO-THE-JAR
 +    java -jar vigilia-server.jar PORT &
 +end script
 +
 +</code>
 +
 +Now, once you replaced PATH-TO-THE-JAR and PORT with their correct values, move the file to /etc/init:
 +
 +<code>
 +sudo mv vigilia.conf /etc/init/vigilia.conf
 +</code>
 +
 +That's it!
 +Now reboot and Vigilia should start automatically.
 +
 +This is only a barebone service. To get more info, see http://upstart.ubuntu.com/cookbook/.
 +
suppliers/hvac.io/vigilia/installation.txt · Last modified: 2020/10/04 01:53 by 173.249.2.13