[Unit] Description=Rustdesk api Server [Service] Type=simple LimitNOFILE=1000000 ExecStart=/usr/bin/rustdesk-api WorkingDirectory=/var/lib/rustdesk-api/ User= Group= Restart=always StandardOutput=append:/var/log/rustdesk-api/rustdesk-api.log StandardError=append:/var/log/rustdesk-api/rustdesk-api.error # Restart service after 10 seconds if node service crashes RestartSec=10 [Install] WantedBy=multi-user.target