Files
2024-12-23 16:01:43 +08:00

17 lines
320 B
Bash

mkdir -p db
rm -rf log; mkdir log
if systemctl > /dev/null; then
cp -f mongod.service /lib/systemd/system/
systemctl daemon-reload
systemctl start mongod
else
nohup mongod --config mongod.yaml > log/mongod.log &
fi
sleep 2.0
nohup deno run --allow-net --allow-read cli/ser.js 728 > log/ismism728.log &
sleep 0.5