# Service registration

After you have installed ELO Sync, you can register it as a system service, so that it starts automatically with the operating system.

# Windows

To register ELO Sync as a Windows service, execute the following command in PowerShell as an administrator:

New-Service -Name ELOSync -DisplayName "ELO Sync" -Description "ELO Sync provides synchronization between ELO repositories and third-party systems" -BinaryPathName C:\Full\Path\To\EloSync\Elo.Sync.Main.exe

Information

This command runs the ELO Sync service under the SYSTEM account of the Windows installation.

# Linux

Create an elosync.service systemd unit file for the ELO Sync service with the following content:

[Unit]
Description=ELO Sync provides synchronization between ELO repositories and third-party systems
[Service]
WorkingDirectory=/path/to/elosync/
ExecStart=/path/to/elosync/Elo.Sync.Main
# Always restart if the service exits
Restart=always
RestartSec=5
KillSignal=SIGINT
Environment=ASPNETCORE_ENVIRONMENT=Production

Information

The ELO Sync service is then executed as root with these instructions.

This is not recommended, but setting up and configuring a service user account is not part of this guide.

You can find information on this in the documentation for your Linux distribution.

Open a terminal in the directory where you created the elosync.service file and execute the following commands:

sudo cp elosync.service /etc/systemd/system/elosync.service
sudo systemctl daemon-reload
sudo systemctl start elosync.service
# If you want to enable auto start execute the following
sudo systemctl enable elosync.service
Last updated: February 14, 2025 at 4:15 PM