to autostart the server_sensor.py on boot: add the line in: /etc/profile -> bash /path/to/server_sensor.sh before this, give permission for this files: server_sensor.py and server_sensor.sh -> sudo chmod +x server_sensor.py -> sudo chmod +x server_sensor.sh