An automated way of creating services/demons for ubuntu 16.04.
I made this script for other automated bash scripts and to fix some bugs in this https://gist.github.com/naholyr/4275302.
curl https://raw.githubusercontent.com/x13machine/ubuntu-demon-creator/master/create-demon.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.