how to use: vim /etc/rc.local, then add cd /home/git/gogs; scripts/autoboot.sh (goes path you can replace your path)