I need to but elasticsearch service in monitor with chkservd
I made that
add : elasticsearch:1
in /etc/chkserv.d/chkservd.conf
and made new file with the same name elasticsearch in /etc/chkserv.d contain:
after restart the chkservd I got that service elasticsearch down when it work fine
can any one help in this please
I made that
add : elasticsearch:1
in /etc/chkserv.d/chkservd.conf
and made new file with the same name elasticsearch in /etc/chkserv.d contain:
Code:
service[elasticsearch]=x,x,x,/bin/systemctl restart elasticsearch.service,elasticsearch,root
Code:
[[email protected] ~]# service elasticsearch status
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-07-24 12:32:58 EET; 33min ago
Docs: http://www.elastic.co
Main PID: 258513 (java)
CGroup: /system.slice/elasticsearch.service
├─258513 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFra...
└─261938 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controll...
Jul 24 12:32:58 main.nileyouth.net systemd[1]: Started Elasticsearch.
Last edited by a moderator: