FullPageOS icon indicating copy to clipboard operation
FullPageOS copied to clipboard

How to restart only chromium, not the pi?

Open Boscop opened this issue 9 years ago • 2 comments

After I wrote a new URL in /boot/fullpageos.txt, how can I only restart chromium to load the new URL, without rebooting the pi or interfering with the currently running scripts?

Do I only have to kill /home/pi/scripts/start_chromium_browser so that the loop in scripts/run_onepageos goes to its next iteration? What is the best way to kill it without knowing the PID?

Thanks!

Boscop avatar Sep 07 '17 18:09 Boscop

Maybe try something like

sudo pkill -f chromium_browser

Or whatever the process is called

danielhampton avatar Oct 15 '17 23:10 danielhampton

This works (no need for sudo):

kill -9 $(ps aux | grep "start_chromium_browser" | grep -v grep | awk '{print $2}')

guysoft avatar Oct 16 '17 11:10 guysoft