In this chapter, we reviewed how to get information related to the current process, PID and PPID, UID and GID, and the working directory. Then, we saw how the os/exec package allows us to create child processes, and how their properties can be read similar to the current process.
Next, we looked at what daemons are and how various operating systems support them. We verified how simple it is to execute a process that outlives its parent with os/exec using Cmd.Run.
Then, we went through the automated daemon management systems that are available with Unix, and created an application capable of running with service step by step.
In the next chapter, we are going to improve the control we have over child processes by checking out how to use exit codes and how to manage and send signals.