# Logstash 5.2: init script for manual tar.gz installation?

**URL:** <https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079>\
**Category:** Logstash\
**Created:** [February 6, 2017, 3:13pm UTC](https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079 "2017-02-06T15:13:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [February 6, 2017, 3:13pm UTC](https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079/1 "2017-02-06T15:13:06Z")

</div>

Hi,

I installed logstash 5.2 from the tar package on redhat 6.7. I did not use the installer, because an older version of the elk stack with installed services for logstash, etc. are already present at the system.

I need them to run in parallel for a while.

I searched, but did not find an initscript for logstash 5.2 yet.  
I need to run it as service name logstash5. It must not interact with the currently running logstash 1.5.

How can I achieve my aim?  
Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![Jeremy\_Foran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremy_foran/32/15434_2.png) [@Jeremy\_Foran](https://discuss.elastic.co/u/Jeremy_Foran)\
**Post date:** [February 10, 2017, 9:09pm UTC](https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079/2 "2017-02-10T21:09:16Z")

</div>

Check out this discussion

> [@Init.d missing - CentOS 6.8 - 5.0.0rc1](https://discuss.elastic.co/t/init-d-missing-centos-6-8-5-0-0rc1/63674):
>
> Running CentOS 6.8, installing 5.0.0 RC1 through yum following the instructions in the docs ([https://www.elastic.co/guide/en/logstash/5.0/installing-logstash.html](https://www.elastic.co/guide/en/logstash/5.0/installing-logstash.html)) and the init.d scripts are missing for starting/stopping logstash. Using the following repo config, had to turn gpgcheck off as it appears 5.0.0rc1 is not signed: [logstash-5.x] name=Elastic repository for 5.x packages baseurl=https://artifacts.elastic.co/packages/5.x-prerelease/yum gpgcheck=0 gpgkey=https://artifacts.elastic.co/GP…

Looks like you simply use  
start logstash  
stop logstash  
status logstash  
restart logstash

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 10, 2017, 9:33pm UTC](https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079/3 "2017-02-10T21:33:59Z")

</div>

1. Edit `startup.options` (it will be in the `config` directory where you installed/uncompressed the tar.gz file)
2. Be sure to change `SERVICE_NAME` to be `"logstash5"` Ensure all other settings are correct
3. Run `$LS_HOME/bin/system-install /path/to/startup.options sysv` with `sudo` or as the root user, where `$LS_HOME` is the directory where you installed/uncompressed the tar.gz file.

This will generate a SysV init script named `logstash5`.

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [February 27, 2017, 11:25am UTC](https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079/4 "2017-02-27T11:25:45Z")

</div>

Thanks, that was the solution.

---

<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:** [March 27, 2017, 11:26am UTC](https://discuss.elastic.co/t/logstash-5-2-init-script-for-manual-tar-gz-installation/74079/5 "2017-03-27T11:26:05Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
