Skip to content

gogich77/python-systemd-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Writing a very basic systemd Service in Python

Tested on Ubuntu 22.04.1 LTS/jammy

Service file in /lib/systemd/system/python_demo_service.service done by root/sudo

Python file in /usr/local/lib/python_demo_service/python_demo_service.py done by root/sudo

sudo systemctl daemon-reload
sudo systemctl start python_demo_service
sudo systemctl status python_demo_service
sudo journalctl -fu python_demo_service

About

A tutorial for writing a systemd service in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%