Codebase list poshc2 / 1744ed27-2484-499a-9724-b9f7ba77c4cd/upstream resources / scripts / posh-service
1744ed27-2484-499a-9724-b9f7ba77c4cd/upstream

Tree @1744ed27-2484-499a-9724-b9f7ba77c4cd/upstream (Download .tar.gz)

posh-service @1744ed27-2484-499a-9724-b9f7ba77c4cd/upstreamraw · 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