write_gatt_char fails when called in systemd service #531
-
DescriptionI've written an application and it works fine when I start it from the shell, but when I start it as a systemd service, What I DidI've striped the code down to this example:
Running it as root user from the shell gives this output:
Then I have a Systemd service file that looks like this:
And after starting the service, it writes the following lines to the journal:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I would suggest creating a utility user account that is a member of the Also, a newer BlueZ version would avoid the code path that calls |
Beta Was this translation helpful? Give feedback.
I would suggest creating a utility user account that is a member of the
bluetooth
group and run the systemd service as this user.Also, a newer BlueZ version would avoid the code path that calls
os.write()
.