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
|
2024-05-03 00:36:29 +08:00
|
|
|
# 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"
|
2022-07-07 01:27:21 +08:00
|
|
|
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
|