Read the statement by Michael Teeuw here.
MMPM doesn't work after reboot
-
Hello,
I am very new to this and have just finished building my first Magic Mirror. I am starting to get acquainted with modules. I have no Linux background but skilled with web programming languages, and specialize in MSSQL.
Anyhow, I have installed MMPM using the instructions from the author. It appears to run well. I can access to page, even remotely from another computer. When I turn my Pi off or reboot it however, my Magic Mirror auto starts when it comes back on, but mmpm no longer works. I cannot get it working unless I run “mmpm ui install -y” again.
I am guessing that I either don’t have something set up right in my MM config or I need to learn how to make things auto-start when my Pi turns on.
Thanks in advance for any help you can provide.
-
@dcoistek how did you install MagicMirror? the automated script?
did you say yes to pm2 to autostart at boot?if so you can use pm2 to run another app
see the help for the pm2 command
pm2 --help
in general, by convention, all linux commands are supposed to have help with
-help of --helpsome may also pro ide a manual file
accessible thru the man commandman command_name
man ls
man pm2
etc
q will edit the man viewer.I think mmpm has a process that needs to be started to work
pm2 start process,_name
pm2 save
will set it up for system at bootnote if the process_nane is a shell script
it needs to be named with the .sh extension, or you gave to launch the shell in the command to pm2pm2 start bash /c script_file_name