Assuming I have my license server installed here: /opt/jetbrains-license-server, how do I configure it to start automatically?
How to start Jetbrains License Server automatically on the Ubuntu system
startup-scriptsubuntu-14.04
Related Topic
- Centos – How to make a program start up automatically on reboot
- Installing GitBlit GO as Service in Ubuntu Server 14.04
- Ubuntu – How to auto-start docker containers at system boot
- Linux – Spamassassin does not start on ubuntu server
- Does fail2ban start automatically each time system starts
- Ubuntu – How to configure Ubuntu 14.04 to start a service automatically
Best Answer
The anwer of @chris-betti is correct. However for DEBIAN based systems I have three additions:
ad 1: see the script file below. You need to change the line
# Default Start
to read:ad 2: Ensure that you have a 'jetbrains' system user that can start the service (and has permission to write in the directory where you installed the licenseserver
ad 3: Regarding the PID file, you need to change the line with
# pidfile:
to:Install the daemon:
There is one more addition to install the service into the various runlevels for debian based systems (Debian, Ubuntu). This will ensure that the service starts at boot and halts on halt.
The script with all the changes
Here is the script with all the changes incorporated.