add auto start script

how to use:
vim /etc/rc.local, then add
cd /home/git/gogs; scripts/autoboot.sh
(goes path you can replace your path)
This commit is contained in:
jacksonpan 2014-10-13 14:32:08 +08:00
parent 2dd4ab65c7
commit 9e4c2afad7

2
scripts/autoboot.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart"