From 9e4c2afad7b4593b388a38996e6fbc071d942e85 Mon Sep 17 00:00:00 2001 From: jacksonpan <530933208@qq.com> Date: Mon, 13 Oct 2014 14:32:08 +0800 Subject: [PATCH] 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) --- scripts/autoboot.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 scripts/autoboot.sh diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh new file mode 100644 index 000000000..eb16d5817 --- /dev/null +++ b/scripts/autoboot.sh @@ -0,0 +1,2 @@ +#!/bin/sh +su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart"