comparison backup/start.sh @ 1693:45eaaf5146f3

add backup autostart
author Vadim Filimonov <fffilimonov@yandex.ru>
date Mon, 20 Jun 2022 10:29:43 +0300
parents
children
comparison
equal deleted inserted replaced
1692:d6ec67fa4a61 1693:45eaaf5146f3
1 #!/bin/bash -e
2
3 ROOTPWD=$(pwd);
4 logsdir=${ROOTPWD}"/logs";
5 servelog=${logsdir}"/server.log";
6
7 if [ "$1" == "launchd" ]; then
8 ${ROOTPWD}/luan.sh server.luan $* &2>${servelog}
9 else
10 ${ROOTPWD}/luan.sh server.luan $* &2>${servelog}&
11 fi;