I have a daemon that I have to start when it is shut down.
So I would like to check to see if the daemon is up and running. If its running then stop the script. If its not running then start the daemon. This is what I want to do.
As of right now I have some of it setup. But I need to check if its running or not. Thats where I need help.
Here is the script I have for now. This is when I run it.
server {dars}> ./script.shl
Daemon daemon not running
[1] 23386
server {dars}> Creating deamon daemon
Done creating daemons
server {dars}>
So I would like to check to see if the daemon is up and running. If its running then stop the script. If its not running then start the daemon. This is what I want to do.
As of right now I have some of it setup. But I need to check if its running or not. Thats where I need help.
Here is the script I have for now. This is when I run it.
server {dars}> ./script.shl
Daemon daemon not running
[1] 23386
server {dars}> Creating deamon daemon
Done creating daemons
server {dars}>