It's time for a new Laptop. (What would you do?)

2»

Answers

  • tgb417
    tgb417 Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Dataiku Frontrunner Awards 2021 Participant, Frontrunner 2022 Participant, Neuron 2023 Posts: 1,598 Neuron

    Right now I have a fairly simple addition to my .bashrc script that starts PostgreSQL and Dataiku DSS on WSL2 startup. It looks something like this.

    # Start PostgreSQL
    if ! pgrep -x "postgres" >/dev/null; then
    echo "Starting postgresql"
    sudo service postgresql start
    echo "postgres service started using: sudo service postgresql start"
    fi

    # Start Dataiku DSS
    if ! pgrep -x "nginx" >/dev/null; then
    echo "Starting Dataiku DSS"
    sudo -u dataiku /home/dataiku/DATA_DIR/bin/dss start
    echo "Dataiku DSS services started using: sudo sudo -u dataiku /home/dataiku/DATA_DIR/bin/dss start"
    fi

    This of course could be improved in a lot of different way. If you have some ideas for making this better for WSL2 please share your ideas.

Setup Info
    Tags
      Help me…