chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Rabkin <asrab...@gmail.com>
Subject Re: Some scripts in bin/ folder require bash, call sh
Date Mon, 15 Feb 2010 20:56:31 GMT
Yup. That's a bug.  We've opened
https://issues.apache.org/jira/browse/CHUKWA-453 to track progress in
fixing it.

--Ari

2010/2/15 Guillermo Pérez <bisho@tuenti.com>:
> Hi, I have noticed that some scripts in bin/ folder of the
> distribution say to require /bin/sh to run, but in fact they require
> bash because they use function for declaring functions:
>
> $ grep -r function bin/
> bin/agent.sh:function stop {
> bin/demux.sh:function remove_cron {
> bin/demux.sh:function add_cron {
> bin/exec-data-loader.sh:function clean_up {
> bin/hicc.sh:function stop {
> bin/jettyCollector.sh:function stop {
> bin/systemDataLoader.sh:function status {
> bin/systemDataLoader.sh:function shutdown {
>
> If you really use sh (or compatible dash) to execute them you get an
> error. They require bash to work:
> sh bin/agent.sh
> bin/agent.sh: 24: function: not found
>
> We should use #!/bin/bash as header on those scripts.
>
> Regards
>
> --
> Guille -ℬḭṩḩø- <bisho@tuenti.com>
> :wq
>



-- 
Ari Rabkin asrabkin@gmail.com
UC Berkeley Computer Science Department

Mime
View raw message