Skip to content

Conversation

@setiaji
Copy link

@setiaji setiaji commented Jul 13, 2017

#!/bin/bash
service=bisa_diganti_dengan_nama_service

if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
then
echo "$service is running!!!"
else
/etc/init.d/$service start
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant