Codebase list poshc2 / 15d18e0 resources / scripts / posh-service
15d18e0

Tree @15d18e0 (Download .tar.gz)

posh-service @15d18e0raw · 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