[Unit] Description=RustDesk Requires=network.target After=systemd-user-sessions.service [Service] Type=simple ExecStart=/usr/bin/rustdesk --service ExecStop=pkill -f "rustdesk --tray" PIDFile=/run/rustdesk.pid KillMode=mixed TimeoutStopSec=30 User=root LimitNOFILE=100000 [Install] WantedBy=multi-user.target