Change program name and add service file.

This commit is contained in:
2024-12-17 20:39:28 +04:00
parent 47824edc51
commit 09182ab7b4
3 changed files with 30 additions and 3 deletions

16
BlockyGrapher.service Normal file
View File

@@ -0,0 +1,16 @@
[Unit]
Description=Physical display query grapher for Blocky DNS Server.
After=syslog.target
After=network.target
#If you have Blocky service, its better to start grapher after it.
#After=blocky.service
[Service]
Environment=PYTHONUNBUFFERED=1
# Change according to your setup.
User=user
Group=user
WorkingDirectory=/path/to/BlockyGrapher
ExecStart=python3 BlockyGrapher.py --i2c-port 2 --i2c-address 0x3C
KillSignal=sigterm
[Install]
WantedBy=multi-user.target