It's time for a new Laptop. (What would you do?)
Answers
-
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"
fiThis 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.
