server-rack-led/start.sh

7 lines
224 B
Bash

#!bin/bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
screen -m -d rackled-ui
sleep 5
screen -S rackled-ui -X stuff "cd $SCRIPT_DIR\n"
screen -S rackled-ui -X stuff "python3 main.py\n"