Read the statement by Michael Teeuw here.
End MM from Terminal
-
Hi,
if I start MM from my computer via ssh terminal, how can I finish the prozess?
In the terminal its’s just the runnnig prozess…Thanks
-
Controlling you MagicMirror via PM2
Restarting your MagicMirror
pm2 restart mmStopping your MagicMirror
pm2 stop mmShow the MagicMirror logs
pm2 logs mmShow the MagicMirror process information
pm2 show mmhttps://github.com/MichMich/MagicMirror/wiki/Jessie-Lite-Installation-Guide
-
I think that doesn’t work correctly…
Or I made a mistake -
I’m just guessing, since I know nothing.
Don’t you have to start it with pm2 to close it with pm2?Ie use pm2 start instead of npm start
-
You have to use the pm2 service manager to be able to stop MM with pm2 stop mm
if you just use npm start, you need to press CTRL+C to stop it.
CTRL+C stops any running process in the terminal you are currently in (so e.g. apt-get upgrade could be stopped with it) -
like u start the npm use CTRL+c or CTRL+X like dbahn25 mentioned.
-
okay thanks :)