Check if program is running with bash shell script
abstract |
This is an example of a bash script which checks for some running process (daemon or service) and does specific actions (reload, sends mail) if there is no such process running.
compatible |
We call ps (process list) command to list every system process and then use grep(filter) command to check if our process name is in that list, for example:
Read full article from Check if program is running with bash shell script
No comments:
Post a Comment