I want to be able to create a simple process (like a sleep command)to run as a daemon process for testing purposes.
any ideal how I can do this. I would like it to run until I kill it and run under what ever process name I give it.
The main process will be the script i.e. procsleep
from this you will have a child process called sleep
if you kill the main process procsleep that will kill th sleep process , because its the child
Is there an easy way to do this though an init.d script? In an example RedHat Linux init.d script you have functions that you include and one of which is 'daemon' which launches a process, but apparently you cannot use '&'.
I would need a way to detach the process within the script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.