view start.sh @ 27:5f3e2121ce2c default tip

minor shell redirection edit
author Violet7
date Sat, 15 Nov 2025 18:40:42 -0800
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 $* &>${servelog}
else
    ${ROOTPWD}/luan.sh serve.luan $* &>${servelog}&
fi;