[Unit] Description=Script to reboot or shutdown by button in raspi After=network.target [Service] ExecStart=/opt/raspberry_scripts/escucha.py Type=simple Restart=on-failure [Install] WantedBy=multi-user.target