rustdesk/res/rustdesk.service
2024-05-03 00:42:20 +08:00

21 lines
415 B
Desktop File

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