Cuando hago el update-rc.d me tira estos warnings:Aerz escribió:
Código: Seleccionar todo
insserv: warning: script 'K01fancontrol' missing LSB tags and overrides
insserv: warning: script 'fancontrol' missing LSB tags and overrides
Cuando hago el update-rc.d me tira estos warnings:Aerz escribió:
Código: Seleccionar todo
insserv: warning: script 'K01fancontrol' missing LSB tags and overrides
insserv: warning: script 'fancontrol' missing LSB tags and overrides
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
Si, puede que no te lo dijese bien en su momento. Después de configurar el programa Deluge, en su wiki explicaban un poco los diferentes métodos para iniciarlo con el sistema y decían que lo mejor era systemd. Prueba a hacer esto:Haru Ijima escribió:
Código: Seleccionar todo
sudo nano /etc/systemd/system/fancontrol.service
Código: Seleccionar todo
sudo systemctl enable /etc/systemd/system/fancontrol.service
sudo systemctl start fancontrol
En cuanto llegue a casa esta tarde después de llevar el coche al taller te aviso a ver si funciona, estuve probando otras cosas pero nada, no hay cojoñes de que arranque...Aerz escribió:
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
Código: Seleccionar todo
sudo systemctl enable /etc/systemd/system/fancontrol.service
Código: Seleccionar todo
Failed to execute operation: Bad message
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
¿y si reinicias? ¿Se ejecuta el servicio? :lol:Haru Ijima escribió:@Aerz Nada, al ejecutardice:Código: Seleccionar todo
sudo systemctl enable /etc/systemd/system/fancontrol.service
:|(Código: Seleccionar todo
Failed to execute operation: Bad message
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
Me ha funcionado metiendolo en el crontab.Haru Ijima escribió:Nada... no hay cojoñes de que se ejecute al arrancar, o algo estoy haciendo mal, o es que simplemente no funciona T_T
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
Código: Seleccionar todo
#! /bin/sh
### BEGIN INIT INFO
# Provides: Script
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Simple script
# Description: Simple script
### END INIT INFO
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting script"
#Run Script
;;
stop)
echo "Stopping update script"
# kill application you want to stop
pkill -9 -f 'script.sh'
;;
*)
echo "Usage: /etc/init.d/Script {start|stop}"
exit 1
;;
esac
exit 0
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
El ventilador no tiene pwm, por lo que le "fabricamos" uno con un transistor para regularle el voltaje y así aumentar o disminuir las revoluciones.doraimontv escribió:Pero... esto no regula el pwm de ventilador... de echo en el tutorial se usa un ventilador sin pwm...
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}
Código: Seleccionar todo
while (true) {
echo 'Holiiiii';
}