How do I make a shell script to see if a certain process is running.
The process shows up on
if [! /usr/sbin/daemon ]
basically i want to run the process if it isnt running/ has been stopped.
if ps aux | grep '[/]usr/sbin/daemon' then echo Running else /usr/sbin/daemon & fi