mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
22 lines
473 B
Desktop File
22 lines
473 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 --"
|
|
# below two lines do not work, have to use above one line
|
|
#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
|