Fix systemd services

- a server should be after network.target instead of
network-online.target[1]
- a client should also pull in network-online.target[1]
- the manual mentions StartLimitIntervalSec=0 but not
StartLimitBurst=0[2]

[1]: man systemd.special
[2]: man systemd.unit
This commit is contained in:
Lin Jian 2023-09-24 15:35:13 +08:00
parent 59d5b6b6d7
commit cc58da2987
No known key found for this signature in database
GPG key ID: A6698D36434F75A5
2 changed files with 3 additions and 2 deletions

View file

@ -1,8 +1,9 @@
[Unit] [Unit]
Description=rkvm client Description=rkvm client
Wants=network-online.target
After=network-online.target After=network-online.target
# This prevents systemd from giving up trying to restart the service. # This prevents systemd from giving up trying to restart the service.
StartLimitBurst=0 StartLimitIntervalSec=0
[Service] [Service]
ExecStart=/usr/bin/rkvm-client /etc/rkvm/client.toml ExecStart=/usr/bin/rkvm-client /etc/rkvm/client.toml

View file

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=rkvm server Description=rkvm server
After=network-online.target After=network.target
[Service] [Service]
ExecStart=/usr/bin/rkvm-server /etc/rkvm/server.toml ExecStart=/usr/bin/rkvm-server /etc/rkvm/server.toml