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

2»

Answers

  • tgb417
    tgb417 Posts: 1,649 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…