incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shaposhnik (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BIGTOP-225) Exit consistently in init scripts for stop on stopped service
Date Mon, 19 Mar 2012 21:55:37 GMT

     [ https://issues.apache.org/jira/browse/BIGTOP-225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Roman Shaposhnik updated BIGTOP-225:
------------------------------------

    Fix Version/s:     (was: 0.3.0)
                   0.4.0
    
> Exit consistently in init scripts for stop on stopped service
> -------------------------------------------------------------
>
>                 Key: BIGTOP-225
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-225
>             Project: Bigtop
>          Issue Type: Sub-task
>          Components: General
>    Affects Versions: 0.1.0
>            Reporter: Peter Linnell
>            Assignee: Peter Linnell
>             Fix For: 0.4.0
>
>
> our init scripts exit with both 0 and 1 when calling stop on a stopped service. It's
common to exit successful when stopping an already stopped service.
> LSB agrees with this: "In addition to straightforward success, the following situations
are also to be considered successful: ... running stop on a service already stopped or not
running"
> http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
> root@node00:~/zookeeper# for file in /etc/init.d/hadoop-*; do $file stop 2>/dev/null
>&2; printf "%50s %d\n" $file $?;done
>                   /etc/init.d/hadoop-datanode 1
>                 /etc/init.d/hadoop-jobtracker 1
>                   /etc/init.d/hadoop-namenode 1
>          /etc/init.d/hadoop--secondarynamenode 1
>                /etc/init.d/hadoop-tasktracker 1
>                    /etc/init.d/hadoop-hbase-master 0
>              /etc/init.d/hadoop-hbase-regionserver 0
>                /etc/init.d/hadoop-zookeeper-server 1
> root@node00:~/zookeeper# for file in /etc/init.d/hadoop-*; do $file stop 2>/dev/null
>&2; printf "%50s %d\n" $file $?;done
>                   /etc/init.d/hadoop-datanode 1
>                 /etc/init.d/hadoop-jobtracker 1
>                   /etc/init.d/hadoop--namenode 1
>          /etc/init.d/hadoop--secondarynamenode 1
>                /etc/init.d/hadoop--tasktracker 1
>                    /etc/init.d/hadoop-hbase-master 0
>              /etc/init.d/hadoop-hbase-regionserver 0
>                /etc/init.d/hadoop-zookeeper-server 1
> http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

--
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

        

Mime
View raw message