Read the statement by Michael Teeuw here.
How to autorun script on MagicMirror boot
-
I use PM2 and scripts to call the various external modules…
EG: buttons.sh, mm.sh and omx.sh
buttons.sh is a short script to launch python3 for buttons.py, my external button runner.
mm.sh is the startup per the old instructions found in the old docks.
omx.sh launches OMXplayer with a bunch of options.I wouldn’t use two of 'em, if I could get pm2 to launch with command line options.
-
@sdetweil said in How to autorun script on MagicMirror boot:
@byte_me use pm2
pm2 start xxx.py
pm2 save@BKeyport said in How to autorun script on MagicMirror boot:
I use PM2 and scripts to call the various external modules…
EG: buttons.sh, mm.sh and omx.sh
buttons.sh is a short script to launch python3 for buttons.py, my external button runner.
mm.sh is the startup per the old instructions found in the old docks.
omx.sh launches OMXplayer with a bunch of options.I wouldn’t use two of 'em, if I could get pm2 to launch with command line options.
Thank you both, this seems to have solved the issue!
-
-
-
@sdetweil
vncserver 3.6% ,squeezelite 13.9% and Xorg 4.5% -
@kelly97129 Sure. PM2 is simply the best way I’ve found to manage what’s running automatically on my system.