Is there a way to safely close down Chromium from the command-line?
Is there a way using command-line/bash
to safely close down Chromium (running multiple tabs), that will not cause the application to shutdown incorrectly.
Using (for example):
$ pkill -3 chromium
(man signal
shows -3 indicates the signal SIGQUIT)
(which I understand is how the shutdown command would terminate an application)
Causes Chromium to give the following error message when you next start it:
Use SIGTERM
:
pkill -15 chromium-browser
or:
pkill chromium-browser
the default value is -15
equal to SIGTERM
.
From Wikipedia:
The SIGTERM signal is sent to a process to request its termination. Unlike the SIGKILL signal, it can be caught and interpreted or ignored by the process. This allows the process to perform nice termination releasing resources and saving state if appropriate. SIGINT is nearly identical to SIGTERM.
PS: pkill -3 chromium
was only an illustration of how may a session lost happen.