- #821
Noted, I think we did something else, can't recall what, but I'll check
I think I've found something: http://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/
and they say:
Is that it? I will check it in a couple of hours...The permission on the unit file needs to be set to 644 :
sudo chmod644 /lib/systemd/system/myscript.service
Correction, what I've done it's below - it registered the service and after reboot
sudo systemctl daemon-reload
sudo systemctl enable VMCserver.service
sudo reboot
server.py is up and running:
Nov 20 11:58:25 garaz server.py: Starting NEW VMC server on device/dev/ttyAMA0, Debug to:/var/log/VMClog.log, running on IP address
Nov 20 11:58:25 garaz server.py: Starting VMC server for ConfoSense on IP address
Nov 20 11:58:25 garaz server.py: Starting VMC server for Control on IP address
Nov 20 11:58:25 garaz server.py: socat started on /tmp/ttyVMC, PID:728
Dernière édition par un modérateur:
