Setting Up Arc as a Linux System Service
Setting Up Arc as a Linux System Service
Running Arc as a Linux system service using systemd ensures Arc starts automatically on server boot and remains available after restarts.
Prerequisite
Systemd must be installed on the host. See: freedesktop.org/wiki/Software/systemd
Step 1: Create a systemd Service Unit File
Create a service unit file pointing to the Arc binary. The example below assumes Arc is installed under /opt/cubewisecode/arc/ and places the unit file at /etc/systemd/system/arc.service:
[Unit]
Description=Arc for TM1
After=network.target
[Service]
ExecStart=/opt/cubewisecode/arc/arc_linux64
Type=simple
[Install]
WantedBy=default.targetUpdate
ExecStartto point to the actual path of your Arc binary.
Step 2: Enable the Service
Enable Arc to start automatically on boot:
sudo systemctl enable arc.serviceStep 3: Start, Stop, and Check Status
Action | Command |
|---|---|
Start Arc |
|
Stop Arc |
|
Check status |
|
When stopped, the status will show as inactive.
Result
Once configured as a systemd service, Arc will:
Start automatically when the server boots
Remain available even after a server restart
Be manageable via standard
systemctlcommands