rustdesk.service 473 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=RustDesk
  3. Requires=network.target
  4. After=systemd-user-sessions.service
  5. [Service]
  6. Type=simple
  7. ExecStart=/usr/bin/rustdesk --service
  8. # kill --tray and --server both
  9. ExecStop=pkill -f "rustdesk --"
  10. # below two lines do not work, have to use above one line
  11. #ExecStop=pkill -f "rustdesk --tray"
  12. #ExecStop=pkill -f "rustdesk --server"
  13. PIDFile=/run/rustdesk.pid
  14. KillMode=mixed
  15. TimeoutStopSec=30
  16. User=root
  17. LimitNOFILE=100000
  18. [Install]
  19. WantedBy=multi-user.target