[Unit] Description=Apaga el LED al apagar o reiniciar DefaultDependencies=no Before=shutdown.target reboot.target halt.target [Service] Type=oneshot EnvironmentFile=/opt/raspberry_scripts/led_config.conf ExecStart=/bin/sh -c '/usr/bin/gpioset ${CHIP} ${LINE}=0' RemainAfterExit=yes [Install] WantedBy=shutdown.target reboot.target halt.target