You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Trevor McKay <tm...@redhat.com> on 2013/04/04 20:58:07 UTC

Why do /usr/sbin/ambari-server and /usr/sbin/ambari-agent look so much like initd scripts but line in /usr/bin?

Hi folks,

  Welcome to me :)  First post here.  Please forgive if this has been
asked and answered, I did not find an archive link in incubator.

  I've been working on some patches to make the python version flexible
between 2.6 and 2.7.

  In the process I noted that ambari-server and ambari-agent look
suspiciously (okay, exactly) like initd scripts and in fact contain
comments to that effect.

  Why are they in /usr/sbin instead of /etc/init.d, where they can be
run as services?

Best,

Trevor


Re: Why do /usr/sbin/ambari-server and /usr/sbin/ambari-agent look so much like initd scripts but line in /usr/bin?

Posted by Mahadev Konar <ma...@apache.org>.
Trevor,
 Its mostly because some folks do not prefer init.d scripts to
start/stop and want normal bin/sbin scripts to do that. The init.d
script just simply wrap the actual scripts. DOes that help?

mahadev

On Thu, Apr 4, 2013 at 11:58 AM, Trevor McKay <tm...@redhat.com> wrote:
> Hi folks,
>
>   Welcome to me :)  First post here.  Please forgive if this has been
> asked and answered, I did not find an archive link in incubator.
>
>   I've been working on some patches to make the python version flexible
> between 2.6 and 2.7.
>
>   In the process I noted that ambari-server and ambari-agent look
> suspiciously (okay, exactly) like initd scripts and in fact contain
> comments to that effect.
>
>   Why are they in /usr/sbin instead of /etc/init.d, where they can be
> run as services?
>
> Best,
>
> Trevor
>