How do I set up Hub to run as a service on Linux?
Last Updated: | Applicable Hub Versions: All
Last Updated: | Applicable Hub Versions: All
You can set up Hub to run as service on Linux by creating a script in your init.d directory that uses the start-tasktop.sh
and stop-tasktop.sh
scripts from Hub's installation directory to start and stop the service.
As an example, if you are using Ubuntu and have installed Hub at /var/tasktop/tasktop-platform
, you can create a script called tasktop in
/etc/init.d
with the following content:
#!/bin/sh if [ "$1" = "start" ]; then /var/tasktop/tasktop-platform/start-tasktop.sh elif [ "$1" = "stop" ]; then /var/tasktop/tasktop-platform/stop-tasktop.sh else exit 1 fi