How To Auto-Start INTEGRAL Server At System Startup on Linux
This guide describes how to automatically start and stop INTEGRAL Server on Linux (Debian or Ubuntu) using systemd.
Create the Service Unit File
Systemd services are defined by "unit files" located in the /etc/systemd/system/ directory. We will create a file named integral.service.
-
Open your terminal and navigate to the directory:
Linux
cd /etc/systemd/system/ -
Create and edit the file using pico (or your preferred editor):
Linux
sudo pico integral.service -
Enter the following configuration into the editor:
[Unit]
Description=INTEGRAL Signal Service
After=network.target
[Service]
Type=forking
ExecStart=<integral_extract_dir>/exec/integral-signal-linux start
ExecStop=<integral_extract_dir>/exec/integral-signal-linux stop
Restart=always
RestartSec=5
User=root
WorkingDirectory=<integral_extract_dir>/exec/
[Install]
WantedBy=multi-user.target
As before, we'll assume that <integral_extract_dir> is the directory where you extracted the INTEGRAL ZIP archive. Remember to replace this string with your actual installation path.
-
Save the script and exit the editor. In pico, press
Ctrl+O,Enter, thenCtrl+X
Reload Systemd
Whenever you create or modify a service file, you must tell systemd to refresh its internal configuration:
Linuxsudo systemctl daemon-reload
Enable and Start the Service
You can now set the service to start automatically at boot and trigger it to start immediately.
Option A: Two-step process
Linuxsudo systemctl enable integral.service
sudo systemctl start integral.service
Option B: The "All-in-one" command
sudo systemctl enable --now integral.service
Managing the Service
Once configured, use these standard commands to manage the INTEGRAL Server manually:
Linuxsudo systemctl stop integral
sudo systemctl start integral
sudo systemctl restart integral
sudo systemctl status integral
Viewing Live logs
Linuxjournalctl -u integral -f
Disabling the Service
If you want to prevent INTEGRAL Server from starting automatically on the next boot:
Linuxsudo systemctl disable integral.service