Mercurial Hosting > hghosting
annotate start.sh @ 1:92a0646e38b6
fix backup
author | fffilimonov |
---|---|
date | Thu, 12 May 2022 05:32:53 -0500 |
parents | dfc36e7ed22c |
children | a90e510ccc4f |
rev | line source |
---|---|
0 | 1 #!/bin/bash -e |
2 | |
3 . common.sh; | |
4 | |
5 /usr/local/bin/hg serve -d -A ${hgaccesslog} -p 8090 -a 127.0.0.1 -t ${templatesdir} --pid-file ${hgservepid} --encoding utf8 --webdir-conf ${webconfig}; | |
6 | |
7 sudo /usr/local/bin/nginx -c ${nginxonfig}; | |
8 | |
9 if [ "$1" == "launchd" ]; then | |
10 ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog} | |
11 else | |
12 ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog}& | |
13 fi; |