- 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
Last active
July 8, 2023 04:36
-
-
Save ewenchou/be496b2b73be801fd85267ef5471458c 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
Tears 🤣🤣🤣