RaphAstronome Posted March 11, 2015 Share Posted March 11, 2015 Bonjour, Est t-il possible d’empêcher un ordinateur de s'éteindre et, si on lui demande de s’éteindre (via "shutdown" ou "init 0") il redémarre ? L'idéal serait que même en cas de gros problème comme un kernel panic il reboot tout seul. Ce serait pour un Raspberry Pi ou éventuellement une autre carte ARM. Merci, Link to comment Share on other sites More sharing options...
Daymarvi Posted March 12, 2015 Share Posted March 12, 2015 Hello, Je ne suis plus certain, mais je pense que tu peux aller modifier cela dans le /etc/sysctl.conf et dire que tu veux un reboot 10 apres un Kernel Panic Bien à toi Link to comment Share on other sites More sharing options...
brice.wernet Posted March 12, 2015 Share Posted March 12, 2015 Effectivement, dans sysctl.conf, il faut ajouter une ligne "panic=20" pour redémarrer 20s après un kernel panic. http://www.admin-linux.fr/?p=4636 Link to comment Share on other sites More sharing options...
RaphAstronome Posted March 12, 2015 Author Share Posted March 12, 2015 Super, je ne connaissais pas cette option. Je teste cela des que possible. Il reste à voir si il est possible d'éviter le shutdown par fausse manip. Link to comment Share on other sites More sharing options...
Ricard Posted March 13, 2015 Share Posted March 13, 2015 Il suffit de mettre les bons droits à la commande shutdown. Link to comment Share on other sites More sharing options...
brice.wernet Posted March 15, 2015 Share Posted March 15, 2015 Il reste à voir si il est possible d'éviter le shutdown par fausse manip. shutdown est un exécutable comme un autre de /sbin, tu peux le renommer et le rempalcer par un script qui lancera reboot. Link to comment Share on other sites More sharing options...
Ricard Posted March 19, 2015 Share Posted March 19, 2015 Super idée. Comme ça, tu baises les programmes qui y font éventuellement appel. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.