Code

- Cleaning and putting create_pid and start_daemon in the right order