An automated way of creating services/demons for ubuntu 16.04. source: https://github.com/x13machine/ubuntu-demon-creator
I made this script for other automated bash scripts and to fix some bugs in this https://gist.github.com/naholyr/4275302.
curl https://gist.githubusercontent.com/annesteenbeek/757b67163baea35735094fe93da14017/raw/df7a3a84eef139d445a99bd2cf7382797dc739c8/create-deamon.sh | sudo name="web" username="web" command="/home/web/start.sh" bash
/var/log/.log