0

Everytime i boot my computer i run:

  1. sudo lsof -i -P -n | grep LISTEN
  2. then look for the PID of 'mysqld' and run 'sudo kill [PID]'

I tried with this script (I also open docker desktop on startup), but didn't work

#!/bin/bash
systemctl --user start docker-desktop
MYSQLD_PID=$(sudo lsof -t -i:3306)
sudo kill $MYSQLD_PID

Also tried searching the command 'mysqld' and getting it PID and then kill it but also didn't work.

After saving the script I chmod +x ~/startup.sh and added it to the 'Startup Applications'

Any ideas? Thanks!

ant other ideas?

0 Answers0