Codebase list poshc2 / 06a953b resources / scripts / posh-service
06a953b

Tree @06a953b (Download .tar.gz)

posh-service @06a953braw · history · blame

#!/bin/bash

source /usr/local/bin/_posh-common
get_posh_project_dir

sudo systemctl enable poshc2.service >/dev/null
sudo systemctl restart poshc2.service >/dev/null
while [[ $x -le 10 ]]; do
    if [ -f "$POSH_PROJECT_DIR/poshc2_server.log" ]; then
        break;
    fi
    sleep 1s
    x=$(( $x + 1 ))
done
/usr/local/bin/posh-log