annotate backup/start.sh.orig @ 2034:d718511fc69f acme-tiny

Begin work on moving to tiny-acme.
author Violet7
date Tue, 04 Nov 2025 20:28:50 -0800
parents
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;