bash script to restart elasticsearch
#!/bin/sh
RESTART="/etc/init.d/elasticsearch restart"
SERVICE="elasticsearch"
LOGFILE="/var/log/elasticRestart.log"
ps -ef | grep elastic | grep -v grep > /dev/null
if [ $? -eq 0 ]
then
/etc/init.d/elasticsearch restart >> /var/log/elasticRestart.log
echo "Elasticsearch relaunched at $(date)" >> /var/log/elasticRestart.log
else
echo "Elasticsearch is running $(date)" >> /var/log/elasticRestart.log
fi
Also in C++:
- django_filters install
- github not showing my contributions
- ubuntu focus follows mouse
- git command change to previous comit
- open firewall port in linux
- Git: warning: Pulling without specifying how to reconcile divergent branches is
- windows give an ip address a name
- apply gitignore to current commit
- the current numpy installation fails to pass a sanity check due to a bug in the windows runtime
- react native installation
- ubuntu spotify
- print environment variables linux
- git revert last commit unpushed
- expo install globally
- aws instance creation using terraform
- mongo install
- check the linux process top 10
- npm install redux thunk
- split disk image dmg
- linux check if x11
- github go to a branch
- uninstall nginx
- get difference between two git branches
- git stage