Menu

Sleep a few seconds when /proc is missing

Anonymous
2011-01-07
2013-01-28
  • Anonymous

    Anonymous - 2011-01-07

    Sometimes thinkfan is started before /proc is ready
    On my computer Kubuntu 10.10 with standard thinkfan package it starts around
    That will sometimes result in:
    Jan  7 09:11:39 pascal-t410s thinkfan: /proc/acpi/ibm/fan: No such file or directory
    Jan  7 09:11:39 pascal-t410s thinkfan: Error opening /proc/acpi/ibm/fan. Is this a computer really Thinkpad? Is the thinkpad_acpi module loaded? Are you running thinkfan with root privileges?

    restarting the daemon later will work with no problems.
    This would probably be solved if thinkfan would sleep a few seconds if /proc isn't ready.

     
  • Victor Mataré

    Victor Mataré - 2011-01-07

    Stuff like this really belongs into the init script. You should file a (k)ubuntu bug about it. I think Evgeni Golov maintains thinkfan for debian and ubuntu. I'd really recommend finding out why thinkfan is started before /proc/acpi/ibm/fan exists and fixing that, instead of implementing some timer to work around this incorrect init script ordering. It's definitely something that needs to be fixed in the ubuntu/debian package and not in the thinkfan program itself.

     
MongoDB Logo MongoDB