- Create a service file like
dash_sniffer.service
- Put it in
/lib/systemd/system/
- Reload
systemd
using command:systemctl daemon-reload
- Enable auto start using command:
systemctl enable dash_sniffer.service
-
-
Save viseshrp/7169996bf5b6061b383c1319c76ffe8b to your computer and use it in GitHub Desktop.
Run Python script as systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Dash Button Sniffer | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/dash_sniffer.py | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment