# Service Wrapper with ElasticSearch

**URL:** <https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055>\
**Category:** Elasticsearch\
**Created:** [June 30, 2010, 10:12am UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055 "2010-06-30T10:12:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 30, 2010, 10:12am UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/1 "2010-06-30T10:12:59Z")

</div>

Hi,

```
I am having some second thoughts regarding the inclusion of the service

```

wrapper in elasticsearch. I have re-read several times the license for it,  
and even though it is free for open source projects (GPL), I dislike the  
fact that its not fully free and prefer not to include it in elasticsearch.  
Of course, end users can still use it as its GPL, just that it won't be  
distributed with elasticsearch.

```
Current plan is to remove it for 0.9, sorry about that...

```

-shay.banon

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [June 30, 2010, 10:16am UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/2 "2010-06-30T10:16:28Z")

</div>

Hiya

> ```
> I am having some second thoughts regarding the inclusion of the
> 
> ```
> 
> service wrapper in elasticsearch. I have re-read several times the  
> license for it, and even though it is free for open source projects  
> (GPL), I dislike the fact that its not fully free and prefer not to  
> include it in elasticsearch. Of course, end users can still use it as  
> its GPL, just that it won't be distributed with elasticsearch.

Yeah - I had similar feelings about it

> ```
> Current plan is to remove it for 0.9, sorry about that...
> 
> ```

It's a bit of a bummer though - it works rather well.

Is there an OS alternative? If not, what about including a 'setup'  
script which would:

- download the service wrapper
- update the config so that it plays nicely with ES
- runs 'install'

clint

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 30, 2010, 10:26am UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/3 "2010-06-30T10:26:52Z")

</div>

How about creating another github repo with the service wrapper, that will  
contain it bin/service?

On Wed, Jun 30, 2010 at 1:16 PM, Clinton Gormley [clinton@iannounce.co.uk](mailto:clinton@iannounce.co.uk)wrote:

> Hiya
> 
> > ```
> > I am having some second thoughts regarding the inclusion of the
> > 
> > ```
> > 
> > service wrapper in elasticsearch. I have re-read several times the  
> > license for it, and even though it is free for open source projects  
> > (GPL), I dislike the fact that its not fully free and prefer not to  
> > include it in elasticsearch. Of course, end users can still use it as  
> > its GPL, just that it won't be distributed with elasticsearch.
> 
> Yeah - I had similar feelings about it
> 
> > ```
> > Current plan is to remove it for 0.9, sorry about that...
> > 
> > ```
> 
> It's a bit of a bummer though - it works rather well.
> 
> Is there an OS alternative? If not, what about including a 'setup'  
> script which would:
> 
> - download the service wrapper
> - update the config so that it plays nicely with ES
> - runs 'install'
> 
> clint

---

<div class="post-metadata">

**Author:** ![mooky](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@mooky](https://discuss.elastic.co/u/mooky)\
**Post date:** [June 30, 2010, 11:36am UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/4 "2010-06-30T11:36:06Z")

</div>

Is this a concern of license or a matter of principle?

-N

On 30 Jun 2010, at 11:12, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)  
wrote:

> Hi,
> 
> ```
> I am having some second thoughts regarding the inclusion of the  
> 
> ```
> 
> service wrapper in elasticsearch. I have re-read several times the  
> license for it, and even though it is free for open source projects  
> (GPL), I dislike the fact that its not fully free and prefer not to  
> include it in elasticsearch. Of course, end users can still use it  
> as its GPL, just that it won't be distributed with elasticsearch.
> 
> ```
> Current plan is to remove it for 0.9, sorry about that...
> 
> ```
> 
> -shay.banon

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 30, 2010, 1:11pm UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/5 "2010-06-30T13:11:10Z")

</div>

Both, my I am very flexible when it comes to principles 😉

On Wed, Jun 30, 2010 at 2:36 PM, Nick Minutello [nick.minutello@gmail.com](mailto:nick.minutello@gmail.com)wrote:

> Is this a concern of license or a matter of principle?
> 
> -N
> 
> On 30 Jun 2010, at 11:12, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com) wrote:
> 
> Hi,
> 
> > I am having some second thoughts regarding the inclusion of the service  
> > wrapper in elasticsearch. I have re-read several times the license for it,  
> > and even though it is free for open source projects (GPL), I dislike the  
> > fact that its not fully free and prefer not to include it in elasticsearch.  
> > Of course, end users can still use it as its GPL, just that it won't be  
> > distributed with elasticsearch.
> > 
> > Current plan is to remove it for 0.9, sorry about that...
> > 
> > -shay.banon

---

<div class="post-metadata">

**Author:** ![Grant\_Rodgers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant_rodgers/32/3204_2.png) [@Grant\_Rodgers](https://discuss.elastic.co/u/Grant_Rodgers)\
**Post date:** [June 30, 2010, 6:48pm UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/6 "2010-06-30T18:48:58Z")

</div>

At GoTime we investigated several ways to run elasticsearch, including  
the service wrapper, but none fit our needs. We eventually decided to  
use runit as a service wrapper. It's pretty simple and works well.  
Here is the runit script we use:

#!/bin/bash

exec 2\>&1

ulimit -n 32768

ES\_HOME=/usr/lib/elasticsearch

. /etc/elasticsearch/elasticsearch.in.sh

exec chpst -u elasticsearch java $JAVA\_OPTS $ES\_JAVA\_OPTS -  
Delasticsearch -Des.path.home=$ES\_HOME -Des-foreground=yes -cp  
$CLASSPATH org.elasticsearch.bootstrap.Bootstrap

On Jun 30, 3:16 am, Clinton Gormley [clin...@iannounce.co.uk](mailto:clin...@iannounce.co.uk) wrote:

> Hiya
> 
> > ```
> > I am having some second thoughts regarding the inclusion of the
> > 
> > ```
> > 
> > service wrapper in elasticsearch. I have re-read several times the  
> > license for it, and even though it is free for open source projects  
> > (GPL), I dislike the fact that its not fully free and prefer not to  
> > include it in elasticsearch. Of course, end users can still use it as  
> > its GPL, just that it won't be distributed with elasticsearch.
> 
> Yeah - I had similar feelings about it
> 
> > ```
> > Current plan is to remove it for 0.9, sorry about that...
> > 
> > ```
> 
> It's a bit of a bummer though - it works rather well.
> 
> Is there an OS alternative? If not, what about including a 'setup'  
> script which would:
> 
> - download the service wrapper
> - update the config so that it plays nicely with ES
> - runs 'install'
> 
> clint

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:22am UTC](https://discuss.elastic.co/t/service-wrapper-with-elasticsearch/3055/7 "2017-07-06T04:22:50Z")

</div>


