Mercurial Hosting > hghosting
annotate start.sh @ 27:5f3e2121ce2c default tip
minor shell redirection edit
| author | Violet7 |
|---|---|
| date | Sat, 15 Nov 2025 18:40:42 -0800 |
| parents | a90e510ccc4f |
| children |
| rev | line source |
|---|---|
|
19
a90e510ccc4f
fix restart/move logs
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
0
diff
changeset
|
1 #!/bin/bash |
| 0 | 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 | |
| 27 | 10 ${ROOTPWD}/luan.sh serve.luan $* &>${servelog} |
| 0 | 11 else |
| 27 | 12 ${ROOTPWD}/luan.sh serve.luan $* &>${servelog}& |
|
19
a90e510ccc4f
fix restart/move logs
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
0
diff
changeset
|
13 fi; |
