# Init.d-script for debian

**URL:** https://discuss.elastic.co/t/init-d-script-for-debian/3409
**Category:** Elasticsearch
**Created:** [October 5, 2010, 11:03am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409 "2010-10-05T11:03:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Reto](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Reto](https://discuss.elastic.co/u/Reto)
#### Post date: [October 5, 2010, 11:03am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/1 "2010-10-05T11:03:49Z")

</div>

Hi,

I've made a init.d-script to start and stop elasticsearch on Debian:  
[http://gist.github.com/611351](http://gist.github.com/611351)

It doesn't use the service wrapper, but starts "elasticsearch"  
directly with "start-stop-daemon".  
Maybe it helps someone..  
Comments welcome.

Sincerely

---

<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: [October 5, 2010, 11:05am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/2 "2010-10-05T11:05:23Z")

</div>

Looks great!, thanks for sharing. Can you maybe create a wiki page for it,  
so it will get more visibility?

On Tue, Oct 5, 2010 at 1:03 PM, Reto [retoonline@gmail.com](mailto:retoonline@gmail.com) wrote:

> Hi,
> 
> I've made a init.d-script to start and stop elasticsearch on Debian:  
> [http://gist.github.com/611351](http://gist.github.com/611351)
> 
> It doesn't use the service wrapper, but starts "elasticsearch"  
> directly with "start-stop-daemon".  
> Maybe it helps someone..  
> Comments welcome.
> 
> Sincerely

---

<div class="post-metadata">

### Author: ![Reto](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Reto](https://discuss.elastic.co/u/Reto)
#### Post date: [October 5, 2010, 11:32am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/3 "2010-10-05T11:32:28Z")

</div>

Ok,

So I've created a wiki page:  
[GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](http://github.com/elasticsearch/elasticsearch/wiki/Setting-up-Elasticsearch-on-Debian)

But I didn't link to it from anywhere, maybe someone should review it  
first.. 🙂

Sincerely

On Oct 5, 1:05 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Looks great!, thanks for sharing. Can you maybe create a wiki page for it,  
> so it will get more visibility?
> 
> On Tue, Oct 5, 2010 at 1:03 PM, Reto [retoonl...@gmail.com](mailto:retoonl...@gmail.com) wrote:
> 
> > Hi,
> 
> > I've made a init.d-script to start and stop elasticsearch on Debian:  
> > [http://gist.github.com/611351](http://gist.github.com/611351)
> 
> > It doesn't use the service wrapper, but starts "elasticsearch"  
> > directly with "start-stop-daemon".  
> > Maybe it helps someone..  
> > Comments welcome.
> 
> > Sincerely

---

<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: [October 5, 2010, 11:37am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/4 "2010-10-05T11:37:07Z")

</div>

Hey,

Had a quick look, looks good. The only thing that I am concerned about is  
apt-get of sun jre. If I am not mistaken, this intall the JVM only with the  
Client HotSpot (you can check that with java -version). elasticsearch should  
be run with the Server HotSpot, which I believe is the default when you  
apt-get the sun-java6-jdk. Can you check this?

-shay.banon

On Tue, Oct 5, 2010 at 1:32 PM, Reto [retoonline@gmail.com](mailto:retoonline@gmail.com) wrote:

> Ok,
> 
> So I've created a wiki page:
> 
> [GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](http://github.com/elasticsearch/elasticsearch/wiki/Setting-up-Elasticsearch-on-Debian)
> 
> But I didn't link to it from anywhere, maybe someone should review it  
> first.. 🙂
> 
> Sincerely
> 
> On Oct 5, 1:05 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Looks great!, thanks for sharing. Can you maybe create a wiki page for  
> > it,  
> > so it will get more visibility?
> > 
> > On Tue, Oct 5, 2010 at 1:03 PM, Reto [retoonl...@gmail.com](mailto:retoonl...@gmail.com) wrote:
> > 
> > > Hi,
> > 
> > > I've made a init.d-script to start and stop elasticsearch on Debian:  
> > > [http://gist.github.com/611351](http://gist.github.com/611351)
> > 
> > > It doesn't use the service wrapper, but starts "elasticsearch"  
> > > directly with "start-stop-daemon".  
> > > Maybe it helps someone..  
> > > Comments welcome.
> > 
> > > Sincerely

---

<div class="post-metadata">

### Author: ![Reto](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Reto](https://discuss.elastic.co/u/Reto)
#### Post date: [October 5, 2010, 11:57am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/5 "2010-10-05T11:57:29Z")

</div>

Hm,

# This is sun-java6-jre on Lenny:

# java -version

# java version "1.6.0\_20" Java(TM) SE Runtime Environment (build 1.6.0\_20-b02) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

So, I guess it should be ok..

Sincerely

On Oct 5, 1:37 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Hey,
> 
> Had a quick look, looks good. The only thing that I am concerned about is  
> apt-get of sun jre. If I am not mistaken, this intall the JVM only with the  
> Client HotSpot (you can check that with java -version). elasticsearch should  
> be run with the Server HotSpot, which I believe is the default when you  
> apt-get the sun-java6-jdk. Can you check this?
> 
> -shay.banon
> 
> On Tue, Oct 5, 2010 at 1:32 PM, Reto [retoonl...@gmail.com](mailto:retoonl...@gmail.com) wrote:
> 
> > Ok,
> 
> > So I've created a wiki page:
> 
> > [GitHub - elastic/elasticsearch: Free and Open Source, Distributed, RESTful Search Engine](http://github.com/elasticsearch/elasticsearch/wiki/Setting-up-Elastic)...
> 
> > But I didn't link to it from anywhere, maybe someone should review it  
> > first.. 🙂
> 
> > Sincerely
> 
> > On Oct 5, 1:05 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Looks great!, thanks for sharing. Can you maybe create a wiki page for  
> > > it,  
> > > so it will get more visibility?
> 
> > > On Tue, Oct 5, 2010 at 1:03 PM, Reto [retoonl...@gmail.com](mailto:retoonl...@gmail.com) wrote:
> > > 
> > > > Hi,
> 
> > > > I've made a init.d-script to start and stop elasticsearch on Debian:  
> > > > [http://gist.github.com/611351](http://gist.github.com/611351)
> 
> > > > It doesn't use the service wrapper, but starts "elasticsearch"  
> > > > directly with "start-stop-daemon".  
> > > > Maybe it helps someone..  
> > > > Comments welcome.
> 
> > > > Sincerely

---

<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: [October 5, 2010, 12:17pm UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/6 "2010-10-05T12:17:47Z")

</div>

Yea, looks good. thanks for checking.

On Tue, Oct 5, 2010 at 1:57 PM, Reto [retoonline@gmail.com](mailto:retoonline@gmail.com) wrote:

> Hm,
> 
> # This is sun-java6-jre on Lenny:
> 
> # java -version
> 
> # java version "1.6.0\_20" Java(TM) SE Runtime Environment (build 1.6.0\_20-b02) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
> 
> So, I guess it should be ok..
> 
> Sincerely
> 
> On Oct 5, 1:37 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Hey,
> > 
> > Had a quick look, looks good. The only thing that I am concerned about  
> > is  
> > apt-get of sun jre. If I am not mistaken, this intall the JVM only with  
> > the  
> > Client HotSpot (you can check that with java -version). elasticsearch  
> > should  
> > be run with the Server HotSpot, which I believe is the default when you  
> > apt-get the sun-java6-jdk. Can you check this?
> > 
> > -shay.banon
> > 
> > On Tue, Oct 5, 2010 at 1:32 PM, Reto [retoonl...@gmail.com](mailto:retoonl...@gmail.com) wrote:
> > 
> > > Ok,
> > 
> > > So I've created a wiki page:
> > 
> > > [GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](http://github.com/elasticsearch/elasticsearch/wiki/Setting-up-Elastic).  
> > > ..
> > 
> > > But I didn't link to it from anywhere, maybe someone should review it  
> > > first.. 🙂
> > 
> > > Sincerely
> > 
> > > On Oct 5, 1:05 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > 
> > > > Looks great!, thanks for sharing. Can you maybe create a wiki page  
> > > > for  
> > > > it,  
> > > > so it will get more visibility?
> > 
> > > > On Tue, Oct 5, 2010 at 1:03 PM, Reto [retoonl...@gmail.com](mailto:retoonl...@gmail.com) wrote:
> > > > 
> > > > > Hi,
> > 
> > > > > I've made a init.d-script to start and stop elasticsearch on  
> > > > > Debian:  
> > > > > [http://gist.github.com/611351](http://gist.github.com/611351)
> > 
> > > > > It doesn't use the service wrapper, but starts "elasticsearch"  
> > > > > directly with "start-stop-daemon".  
> > > > > Maybe it helps someone..  
> > > > > Comments welcome.
> > 
> > > > > Sincerely

---

<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:18am UTC](https://discuss.elastic.co/t/init-d-script-for-debian/3409/7 "2017-07-06T04:18:25Z")

</div>


