You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (Updated) (JIRA)" <ji...@apache.org> on 2012/04/12 01:57:18 UTC
[jira] [Updated] (HADOOP-8270) hadoop-daemon.sh stop action should
return 0 for an already stopped service
[ https://issues.apache.org/jira/browse/HADOOP-8270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated HADOOP-8270:
--------------------------------
Priority: Minor (was: Major)
Target Version/s: 2.0.0
Fix Version/s: (was: 2.0.0)
Hadoop Flags: Reviewed
Summary: hadoop-daemon.sh stop action should return 0 for an already stopped service (was: hadoop-daemon.sh stop action is not LSB compliant)
> hadoop-daemon.sh stop action should return 0 for an already stopped service
> ----------------------------------------------------------------------------
>
> Key: HADOOP-8270
> URL: https://issues.apache.org/jira/browse/HADOOP-8270
> Project: Hadoop Common
> Issue Type: Bug
> Components: scripts
> Affects Versions: 0.23.1
> Reporter: Roman Shaposhnik
> Assignee: Roman Shaposhnik
> Priority: Minor
> Attachments: HADOOP-8270.patch.txt
>
>
> The following bit of code from hadoop-daemon.sh is not LSB compliant, since
> according to http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
> a stop action on an already stopped service should return 0.
> {noformat}
> (stop)
> if [ -f $pid ]; then
> if kill -0 `cat $pid` > /dev/null 2>&1; then
> echo stopping $command
> kill `cat $pid`
> else
> echo no $command to stop
> exit 1
> fi
> else
> echo no $command to stop
> exit 1
> fi
> ;;
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira