paradoxxxzero / butterfly

A web terminal based on websocket and tornado
http://paradoxxxzero.github.io/2014/02/28/butterfly.html
Other
2.9k stars 314 forks source link

Upstart butterfly.conf #61

Open calmera opened 9 years ago

calmera commented 9 years ago

I am trying to start butterfly on ubuntu through upstart, but for some reason it just hangs. I think it has something to do with used libraries as explained here (http://stackoverflow.com/questions/8506002/tornadoweb-webapp-cannot-be-managed-via-upstart)

paradoxxxzero commented 9 years ago

Indeed butterfly forks a shell, so there's several processes. I don't know much about upstart, so if anyone could point to a solution for this...

vsviridov commented 8 years ago

I came up with something like this

# butterfly - Web based shell
#
# Butterfly provides secure(?) shell access via web browser

description     "Butterfly console"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 10 5
umask 022

console none

exec /usr/local/bin/butterfly.server.py --host="$YOUR_HOST$" --log_file_prefix="/var/log/butterfly/" --logging=info