Skip to content
  • Baogen Shang's avatar
    05e9f1f8
    acpid: fix acpid break down · 05e9f1f8
    Baogen Shang authored
    
    
    when execute the command "/etc/init.d/acpid stop" and "/etc/init.d/acpid
    restart", it prompt "no /usr/sbin/acpid found;none killed",The acpid could
    not be restarted because the script start with "!/bin/sh –e", that will
    make the script stop when an error occurred. So when no 'acpid' running
    (we have stopped it), the script would exit and 'restart' operation would
    be stopped by ‘stop’ operation.so avoiding the error occurred, add "-o"
    option,exit status 0 (not 1)if nothing done.
    
    (From OE-Core rev: b7a8daf52c9befc773f320e54999bb91efdac334)
    
    Signed-off-by: default avatarBaogen Shang <baogen.shang@windriver.com>
    Signed-off-by: default avatarJeff Polk <jeff.polk@windriver.com>
    Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
    05e9f1f8
    acpid: fix acpid break down
    Baogen Shang authored
    
    
    when execute the command "/etc/init.d/acpid stop" and "/etc/init.d/acpid
    restart", it prompt "no /usr/sbin/acpid found;none killed",The acpid could
    not be restarted because the script start with "!/bin/sh –e", that will
    make the script stop when an error occurred. So when no 'acpid' running
    (we have stopped it), the script would exit and 'restart' operation would
    be stopped by ‘stop’ operation.so avoiding the error occurred, add "-o"
    option,exit status 0 (not 1)if nothing done.
    
    (From OE-Core rev: b7a8daf52c9befc773f320e54999bb91efdac334)
    
    Signed-off-by: default avatarBaogen Shang <baogen.shang@windriver.com>
    Signed-off-by: default avatarJeff Polk <jeff.polk@windriver.com>
    Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
Loading