Run main script on startup #29
mhamidjamil
started this conversation in
General
Replies: 1 comment
-
My updated service file:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Create a new systemd service file
sudo nano /etc/systemd/system/serial_monitoring.service
Add the following content to the file (adjust the details as needed):
Enable the service
sudo systemctl enable serial_monitoring.service
Start the service
sudo systemctl start serial_monitoring.service
To list all active services
systemctl list-units --type=service
For troubleshooting
journalctl -u serial_monitoring.service
To check status
sudo systemctl status serial_monitoring.service
To stop service
sudo systemctl stop serial_monitoring.service
Beta Was this translation helpful? Give feedback.
All reactions