Deploying Datazenit on a Remote Server
Datazenit can be run locally without any problems, but the real benefit of using Datazenit comes when deployed on a server. If you are working in a team this will allow every team member to access the same instance of Datazenit. Connections, queries, filters and charts can be shared with other developers. Of course by default all of this is private, but developer can decide when to make them available to other team members.
The installation process on a server is exactly the same as a regular installation. However there additional things that can be configured to improve the experience like starting Datazenit automatically after a system reboot and setting up a SSL certificate. This is explained in more details below.
Auto-starting with SysVinit
If you are using Linux operating system that uses SysVinit, auto-start can be easility achieved using a simple script. On systems based on SysVinit, init is the first process that is executed once the Linux kernel loads.
Create a startup script and place it in /etc/init.d/datazenit:
#!/bin/bash # Datazenit Auto-start # # Change /path/to/datazenit/ to the correct path where # Datazenit is installed case $1 in start) /path/to/datazenit/bin/datazenit ;; stop) kill $(cat /path/to/datazenit/RUNNING_PID) ;; restart) kill $(cat /path/to/datazenit/RUNNING_PID) /path/to/datazenit/bin/datazenit ;; esac exit 0
To enable the newly created startup script, run the following command:
update-rc.d myscript defaults
Auto-starting with Upstart
Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.
Create an Upstart configuration file /etc/init/datazenit.conf with the following contents:
# Upstart configuration file /etc/init/datazenit.conf description "datazenit" start on runlevel  exec /path/to/datazenit/bin/datazenit
Reload Upstart configuration files and start Datazenit service:
sudo initctl reload-configuration sudo service datazenit start
More information about Upstart can be found in the official homepage: upstart.ubuntu.com.