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/<name>.log
service uninstall <name>
- name: Name of the demon.
- username: The user the demon will run as.
- command: The command to run the demon.
- description (optional): The description of the demon.