Find the script to start gogs programmatically in `Install/Templates/startgogs` in this repository. Put at the root of your gogs installation. Then, as _gituser_ :
-`crontab -e`
+`$ crontab -e`
And add the line : `@reboot /home/gituser/gogs/startgogs`