I need to start a linux script in a background in deamon mode and then kill it when requried. To that end I try the following
script.sh -daemon -p zpid
What I'm confused about the above is,
- What is the
-daemonflag, I assume this says to start the process as a daemon. Is this the same as using-d? - What does the
-p zpidpart do ? I assume it assigns the processID to thezpidvariable ? - How do I kill the process?