Path: /etc/systemd/system/synco.service
Assuming the executable is located at: /usr/bin/synco
[Unit]
Description=Synco Watch Service
After=network.target
[Service]
# Program + arguments
ExecStart=/usr/bin/synco watch --interval 60
# Automatically restart on failure
Restart=always
RestartSec=5
# User that runs the service (avoid root if possible). Put your user...
User=user
# Log output (collected by journald by default)
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target-
Copy the binary to
/usr/bin/:sudo cp synco /usr/bin/
-
Create the working directory:
sudo mkdir -p /var/lib/synco sudo chown user:user /var/lib/synco
-
Copy the service file:
sudo cp synco.service /etc/systemd/system/
-
Reload
systemdand enable the service:sudo systemctl daemon-reload sudo systemctl enable synco sudo systemctl start synco -
Check status and logs:
systemctl status synco journalctl -u synco -f
Assuming the executable is located at: C:\synco.exe
New-Service -Name "Synco" `
-BinaryPathName '"C:\synco.exe" watch --interval 60' `
-DisplayName "Synco Watch Service" `
-Description "Runs Synco in watch mode with 60s interval" `
-StartupType Automatic-
Copy the binary
synco.exetoC:\(or a permanent location such asC:\Program Files\Synco\). -
Open PowerShell as Administrator.
-
Run the
New-Servicecommand above. -
Start the service:
Start-Service Synco -
Check service status:
Get-Service Synco -
To remove the service:
Stop-Service Synco sc.exe delete Synco
- Linux: Logs are stored in
journalctlby default. You can configure file logging with
StandardOutput=append:/var/log/synco.logif needed. - Windows: Logs go to the Event Viewer by default. If you want file logging, the application itself must handle it.
- Security: Always run services with a dedicated user. Avoid running as
rootorAdministratorunless absolutely required.