server-rack-led/start.sh

7 lines
218 B
Bash

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