Any way to restart via CRON?
-
- Posts: 64
- Joined: Thu Mar 02, 2017 10:15 am
Any way to restart via CRON?
I'm having an issue where the log server will periodically just stop listening for logs, though on a restart (even just an apply config step), it starts reading them again just fine. It appears to be the listeners themselves that drop, maybe logstash as well, but so far I haven't been able to narrow it down to specific events. I may be short of RAM (64 GB) but I'm about to add 192 GB anyway, so if that's the issue it's about to be fixed. I'd still like to schedule a periodc restart of the Log Server just to clear things out. Is there a single script I can call from cron? Or will I need to use the elasticsearch and logstash scripts in /etc/rc3.d?
Re: Any way to restart via CRON?
One approach would be to create a cron job for each of the init scripts. Another would be to create a single script that calls the init scripts.