Skip to content

Instantly share code, notes, and snippets.

View omeroner's full-sized avatar

ömer öner omeroner

View GitHub Profile
#!/bin/bash
###edit the following
service=service_name
email=user@domain.com
###stop editing
host=`hostname -f`
if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
then
echo "$service is running"
else