auto-start-cpu.py-on-boot.txt
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
nano /etc/systemd/system/cpu-py.service | |
Add: | |
[Unit] | |
Description=cpu piglow python script | |
After=syslog.target network.target | |
[Service] | |
ExecStart=/usr/bin/python /usr/share/piglow/cpu.py | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target | |
Save: Ctrl o, then Exit: Ctrl x | |
systemctl daemon-reload | |
systemctl start cpu-py.service | |
Does it work? If yes, then: | |
systemctl enable cpu-py.service | |
Reboot - script should start automatically! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment