Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example systemd.service #20

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

felagund
Copy link
Contributor

@felagund felagund commented Jan 3, 2022

It took me a while to figure it out what exactly to put into the service file, I guess it will be helpful for others too.

It took me a while to figure it out what exactly to put into the service file, I guess it will be helpful for others too.
@yunmikun2
Copy link
Contributor

After the PR about uinput necessity I wonder if it would be better to include loading uinput module in PreExec step, so users won't need to think about it?

@felagund
Copy link
Contributor Author

Ok, I then also moved the remark about loading the module to troubleshooting.

@NoahTheDuke
Copy link

This helped me a lot, thanks for the PR. Hope it can get merged so others benefit too.

@RichardFevrier
Copy link

Here is my config since yours wasn't working on my Fedora Silverblue if ever someone need it:

[Unit]
Description=Keyboard keycode mapping daemon supporting layered configuration
[Service]
Type=simple
ExecStartPre=modprobe uinput
ExecStart=/bin/bash -c "/usr/local/bin/kbct remap --config /etc/kbct/config.yml"
Restart=always
[Install]
WantedBy=default.target

@felagund
Copy link
Contributor Author

Yeah, you are right, I had typoes there it seems, added to the commit.

@RichardFevrier
Copy link

Also I needed /bin/bash -c ...

@felagund
Copy link
Contributor Author

I see. Added link to /bin/sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants