Read the statement by Michael Teeuw here.
Nubie question... How do I kill magic mirror so that I test new settings for config.js
-
-
If you’re using pm2 then SSH in and run
pm2 stop mm
If you’re using the nohup command to run it, you’ll have to find the PID by running
ps aux | grep npm
You should see something like
pi 26292 38.3 4.3 122360 38428 pts/0 Sl 19:17 0:03 npm
pi 26318 0.0 0.2 4276 1952 pts/0 S+ 19:18 0:00 grep --color=auto npm
use the first number you see in the line that just has “npm” (in this example it’s 26292)
then run
kill 26292
(using your PID number)I recommend setting up pm2. It makes it much easier.
-
thanks, will look into pm2.
Also it turns out that if I run “DISPLAY=:0 npm start” from a ssh terminal, magic mirror shows up on the HDMI display. When I control-c on the ssh terminal, it stops the magic mirror.
-
Right, the
nohup
command removes the process from the terminal window. If you shut down the terminal, it’ll also shut down your magic mirror without thenohup
command beforenpm
.