view start.sh @ 28:cfedb3f6cbac default tip

prevent infinite .0s at end of log backup filenames
author Violet7
date Mon, 23 Feb 2026 18:08:44 -0800
parents 5f3e2121ce2c
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;