When shutdown or reboot computer on Linux system (Ubuntu, Ubuntu Gnome etc…) I ussuallty got message “Chrome didn’t shut down correctly” everytime open Google Chrome (v 60.0.3112.101) if before shutdown I did’n close it.
Here a solution to avoid this situation:
As root, create a file name K99-close-google-chrome in /etc/rc6.d/, with content:
1 2 |
#!/bin/bash pkill --oldest chrome |
save and chmod this file for executable:
sudo chmod +x /etc/rc6.d/K99-close-google-chrome
this script will help close Google Chrome before system shutdown or reboot.