nano /etc/init.d/bottle
#!/bin/sh /etc/rc.common # Bottle startup script # start it after everything else is loaded START=98 start() { echo +++++++++++++++++++++++++++++++++++++++++++++++++++ echo Start up Bottle App /mnt/sda1/pythonweb.py & echo +++++++++++++++++++++++++++++++++++++++++++++++++++ } stop() { killall pythonweb.py }
chmod 755 /etc/init.d/bottle
/etc/init.d/bottle restart /etc/init.d/bottle enable
Comments powered by CComment