Skip To Content

INTEGRAL

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.

  1. Open your terminal and navigate to the directory:

    Linux

    cd /etc/systemd/system/

  2. Create and edit the file using pico (or your preferred editor):

    Linux

    sudo pico integral.service

  3. 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.

  4. Save the script and exit the editor. In pico, press Ctrl+O, Enter, then Ctrl+X

Reload Systemd

Whenever you create or modify a service file, you must tell systemd to refresh its internal configuration:

Linux

sudo 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

Linux

sudo 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:

Linux

sudo systemctl stop integral
sudo systemctl start integral
sudo systemctl restart integral
sudo systemctl status integral

Viewing Live logs

Linux

journalctl -u integral -f

Disabling the Service

If you want to prevent INTEGRAL Server from starting automatically on the next boot:

Linux

sudo systemctl disable integral.service