how to setup Ubuntu 14 services
vi /etc/init/slackbot.conf
- add:
start on runlevel [2345] stop on runlevel [!2345] script /opt/slackbot/venv/bin/python /opt/slackbot/bot/run.py others... end script
- add it to
init.d
ln -s /etc/init/slackbot.conf /etc/init.d/slackbot
sudo service slackbot status/start/stop
- https://askubuntu.com/questions/351879/how-to-create-a-service-on-ubuntu-upstart
- https://blog.frd.mn/how-to-set-up-proper-startstop-services-ubuntu-debian-mac-windows/
- 2017-04-17
edit