Skip to content

sezanzeb/systemd-pydbus-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Systemd PyDbus Example

Example setup for a pydbus service controllable via systemctl.

git clone https://github.com/sezanzeb/systemd-pydbus-example
cd systemd-pydbus-example
sudo python3 setup.py install
sudo systemctl daemon-reload
sudo systemctl start systemd-pydbus-example

The service is now running with root permissions and ready to receive messages. Communicate with the server using the client:

systemd-pydbus-example-client --message hello

The service should have received the message and "hello" should now be visible in:

systemctl status systemd-pydbus-example

Resources

.service files

pydbus

PYTHONUNBUFFERED

License

Public Domain, do whatever you want with this code.

About

Example setup for a pydbus server controllable via systemctl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages