# systemd user unit for Linux. # cp lc-agent-linux-amd64 ~/.local/bin/lc-agent && chmod +x ~/.local/bin/lc-agent # cp lc-agent.service ~/.config/systemd/user/ # systemctl --user enable --now lc-agent # Log: journalctl --user -u lc-agent -f [Unit] Description=LAN-Clipboard agent (clipboard sync) # Needs the graphical session for the clipboard After=graphical-session.target PartOf=graphical-session.target [Service] ExecStart=%h/.local/bin/lc-agent run Restart=on-failure RestartSec=10 # Exit code 3: token revoked; restarting would not help RestartPreventExitStatus=3 [Install] WantedBy=graphical-session.target