| @@ -7,3 +7,15 @@ nohup python main.py &>minipai2.log & | ||
| 7 | 7 | ``` | 
| 8 | 8 | nohup python main.py --port=8002 &>minipai2.log & | 
| 9 | 9 | ``` | 
| 10 | + | |
| 11 | +## Start Script | |
| 12 | +* See ./startup.sh | |
| 13 | + | |
| 14 | +## Automatically Start | |
| 15 | +* Crontab | |
| 16 | + * See http://askubuntu.com/questions/814/how-to-run-scripts-on-start-up | |
| 17 | + * Running ``crontab -e`` will allow you to edit your cron. | |
| 18 | + * Adding a line as below to it: | |
| 19 | + ``` | |
| 20 | + @reboot /root/pai2/minipai2/startup.sh | |
| 21 | + ``` |