rustdesk/res/rustdesk.service

22 lines
473 B
SYSTEMD
Raw Normal View History

2022-04-18 15:37:35 +08:00
[Unit]
Description=RustDesk
Requires=network.target
After=systemd-user-sessions.service
[Service]
Type=simple
ExecStart=/usr/bin/rustdesk --service
# kill --tray and --server both
2024-05-03 04:51:01 +08:00
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
2022-04-18 15:37:35 +08:00
KillMode=mixed
TimeoutStopSec=30
User=root
LimitNOFILE=100000
[Install]
WantedBy=multi-user.target