]> source.dussan.org Git - gitea.git/commitdiff
add auto start script
authorjacksonpan <530933208@qq.com>
Mon, 13 Oct 2014 06:32:08 +0000 (14:32 +0800)
committerjacksonpan <530933208@qq.com>
Mon, 13 Oct 2014 06:32:08 +0000 (14:32 +0800)
how to use:
vim /etc/rc.local, then add
cd /home/git/gogs; scripts/autoboot.sh
(goes path you can replace your path)

scripts/autoboot.sh [new file with mode: 0644]

diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh
new file mode 100644 (file)
index 0000000..eb16d58
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart"