nohup daemon process dies when terminal is close

Solution 1:

Use screen or tmux. This is not the way to do this.