Giter Club home page Giter Club logo

Comments (7)

radoondas avatar radoondas commented on August 18, 2024

Hi,
apachebeat (or other beats) doesn't have any special start or stop script which would handle 'stoping'. Kill command is the way to stop it.

Implementer of the beat is usually responsible for this task for each environment.

If you have started your apachebeat in terminal and it is running in terminal as process, simple Ctrl+C should stop apachebeat.
If you sent your apachebeat to background, either call if back (fg) and stop by Ctrl+C, or execute simple 'kill ' command. However, 'klill -9 ' is not necessary under normal circumstances.

On the other hand, I am thinking of creating a script for start and stop of apachebeat but I cannot promise a thing for this task in near future.
Rado

from apachebeat.

kkpbbb avatar kkpbbb commented on August 18, 2024

Hi,thanks for your replay
I know golang can't been a "daemon " in linux without other tools like go-daemon
I have try another beats and they do easy quit with Ctrl+C,or 'kill ' command
But apachebeat ,I must use 'kill -9' command
so I think maybe it is a bug! please check

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

Hi,
thanks for feedback. I understand.
It looks like I cannot rule out a bug possibility.
Let's try to investigate further together to find out what happened.

Let me ask a few questions first.
1, Prior to 'kill -9' is apachebeat behaving correctly? I mean does it produce correct output and you can see your apache status also in Kibana?
2, What version of Go do you use?
3, Do you have latest version of apachebeat?
4, Did you try to turn on debug option?
5, What is your OS version and is it up to date with patches?

Let start with this few questions.

Thanks,
Rado

from apachebeat.

kkpbbb avatar kkpbbb commented on August 18, 2024

1、yes, apachebeat behaving correctly before I try to stop in neight in Ctrl-C nor kill
2、my go version is 'go1.5.1 linux/amd64'
3、yes I use the latest version of apachebeat '1.0.0-beta2'
4、I am not sure I have turn on debug option ,in /etc/apachebeat/apachebeat.yml
logging:
to_syslog: true
level: debug
And when I stop apachebeat use kill ,I saw the log

" Background saving terminated with success"

But acturly it not stop

BTW ,I use go-daemon from https://github.com/tsg/go-daemon.git to star the apachebeat

the init script file is simulate to the topbeat
5、My OS version is
2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.6 (Final)
I am not sure I have apply all the patches.
BTW I compile another community beats they do exit well!

sorry for by bad english !

Thanks.

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

Thanks,
Let's try more. Can we try to simplify the use case?

1, Install the latest GO (1.5.3)
2, checkout the latest version of apachebeat. Not beta2 release.
3, please run apachebeat without go-daemon
4, keep it running and then try to stop it by simple kill, or Crtl+C

Try to run it from command line:
./apachebeat -c /path/to/etc/apachebeat.yml

Meanwhile, I'll try to use and check on do-daemon. Maybe, I can replicate it localy and find out more.
Thanks

from apachebeat.

kkpbbb avatar kkpbbb commented on August 18, 2024

I install the last go ver 1.5.3
and every thing ok,it can normal stop apachebeat

thanks

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

Hi,
thanks for your verification.
I appreciate all your inpu.
Rado

from apachebeat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.