annotate backup/start.sh.orig @ 2035:00bbfef1a86b acme-tiny tip

added Thread.try_synchronized
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 05 Nov 2025 11:20:47 -0700
parents d718511fc69f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2034
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
1 #!/bin/bash -e
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
2
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
3 ROOTPWD=$(pwd);
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
4 logsdir=${ROOTPWD}"/logs";
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
5 servelog=${logsdir}"/server.log";
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
6
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
7 mkdir -p "$logsdir"
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
8
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
9 if [ "$1" == "launchd" ]; then
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
10 ${ROOTPWD}/luan.sh server.luan $* &2>${servelog}
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
11 else
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
12 ${ROOTPWD}/luan.sh server.luan $* &2>${servelog}&
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
13 fi;