On 10/24/2012 10:45 AM, Bart Van Assche wrote: > On 10/24/12 16:33, Doug Ledford wrote: >> On 10/24/2012 9:27 AM, Alex Netes wrote: >>> On 16:44 Fri 21 Sep , Bart Van Assche wrote: >>>> start () { >>>> + if [ -e $pidfile ]; then >>> >>> On opensm segfault (happens one in a while :), pidfile won't be >>> removed, so >>> you won't be able to start the opensm again. I guess that same thing can >>> happen on warm reboot. >> >> The stop action in the script should handle cleanup for you. If it's >> called, and a pid file exists, but the pid is not running, it should >> remove the pid file and the subsystem lock file so that a clean start >> works. > > Hello Doug, > > Do we really need the lock file ? On some Linux systems (Ubuntu) the > /var/lock/subsys directory does not even exist. > > Bart. > It's an old holdover from LSB compliance. *I* don't personally care one way or another, but it's supposed to be there for ancient scripts that look there to find out if a service is running. Probably none of those ancient scripts look for opensm as it wasn't around back when they were written and the "new and improved" way of checking a service in LSB is to run the init script with the status command. But, that's why I have it there. -- Doug Ledford GPG KeyID: 0E572FDD http://people.redhat.com/dledford Infiniband specific RPMs available at http://people.redhat.com/dledford/Infiniband