diff options
author | jacksonpan <530933208@qq.com> | 2014-10-13 14:32:08 +0800 |
---|---|---|
committer | jacksonpan <530933208@qq.com> | 2014-10-13 14:32:08 +0800 |
commit | 9e4c2afad7b4593b388a38996e6fbc071d942e85 (patch) | |
tree | 6fcc47a8a6c9ba42456e9bf4686e20bbd576f3b5 /scripts | |
parent | 2dd4ab65c74543d60b8691c0488efc0e5bb08684 (diff) | |
download | gitea-9e4c2afad7b4593b388a38996e6fbc071d942e85.tar.gz gitea-9e4c2afad7b4593b388a38996e6fbc071d942e85.zip |
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)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/autoboot.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh new file mode 100644 index 0000000000..eb16d58170 --- /dev/null +++ b/scripts/autoboot.sh @@ -0,0 +1,2 @@ +#!/bin/sh +su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart" |