Skip to content

Commit

Permalink
Add systemd service files
Browse files Browse the repository at this point in the history
  • Loading branch information
htrefil committed Oct 31, 2020
1 parent cb0b204 commit a66927b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You either need to run either of the programs as root or make `/dev/uinput` acce

By default, the programs reads their config files from /etc/rkvm/{server,client}.toml, this can be changed by passing the path as the first command line parameter.

The [example](example) directory contains example configurations.
The [example](example) directory contains example configurations and systemd service files.

## Why rkvm and not Barrier/Synergy?
The author of this program had a lot of problems with said programs, namely his keyboard layout (Czech) not being supported properly, which stems from the fact that the programs send characters which it then attempts to translate back into keycodes. rkvm takes a different approach to solving this problem and doesn't assume anything about your keyboard layout -- it sends raw keycodes only.
Expand Down
12 changes: 12 additions & 0 deletions example/rkvm-client.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=rkvm client
After=network-online.target

[Service]
ExecStart=/opt/rkvm/client
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

10 changes: 10 additions & 0 deletions example/rkvm-server.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=rkvm server
After=network-online.target

[Service]
ExecStart=/opt/rkvm/server
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit a66927b

Please sign in to comment.