view start.sh @ 20:8b4481769cc6

fix move logs
author Vadim Filimonov <fffilimonov@yandex.ru>
date Mon, 05 Aug 2024 11:32:22 +0300
parents a90e510ccc4f
children
line wrap: on
line source

#!/bin/bash

. common.sh;

/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};

sudo /usr/local/bin/nginx -c ${nginxonfig};

if [ "$1" == "launchd" ]; then
    ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog}
else
    ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog}&
fi;