Return to site

Pm2 Start On Reboot

broken image


Hey there! I got the Mirror up and nicely running.
Now I am playing around with the config file. However I can't seem to figure how to either update or restart the Mirror App.
I have it starting on boot. So I don't want to reboot everytime I make a change in the config.js.
When I cd to the MagicMirror directory and type

Pm2 Start On Reboot

'npm restart
I get this: How to jailbreak iphone 4s 9.3 5.

npm ERR! Linux 4.4.38-v7+
npm ERR! argv '/usr/bin/nodejs' '/usr/bin/npm' 'restart'
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.0 start: electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.0 start script ‘electron js/electron.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tekken 6 game download pc. Tell the author that this fails on your system:
npm ERR! electron js/electron.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.

Pm2 Start On Reboot
Pm2 Start On Reboot

'npm restart
I get this: How to jailbreak iphone 4s 9.3 5.

npm ERR! Linux 4.4.38-v7+
npm ERR! argv '/usr/bin/nodejs' '/usr/bin/npm' 'restart'
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! magicmirror@2.1.0 start: electron js/electron.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.1.0 start script ‘electron js/electron.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tekken 6 game download pc. Tell the author that this fails on your system:
npm ERR! electron js/electron.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs magicmirror
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls magicmirror
npm ERR! There is likely additional logging output above.

Any advice?

Pm2 Start On Reboot Button

To enable the PM2 to automatically start on system bootup, The command will create a automatically-configured startup script for the system. Pm2 startup To save the lists of process, So that the processes will be automatically started after the system reboot. Start camera.js and cron.js then run check to see they are running under PM2. Pm2 start camera.js pm2 start cron.js pm2 list; After camera.js and cron.js are started you can run the following to start them on boot. Pm2 startup pm2 save. PM2 App throw:0 will restart in 225ms As you can see the restart delay between restarts will increase in an exponential moving average, till reaching the maximum of 15000ms between restarts. PM2 is version 2.4.2 and the MM install was built on Jessie Lite (2017-03-02) on a Pi2. I can start the script with PM2 start mm.sh and use PM2 save when it's running but PM2 list after a reboot. Pm2 start myApp.js -name mySuperApp pm2 -f save reboot or if you use AWS (or any other cloud provider). Reboot your instance - wait 5 minutes and then log into the machine and execute pm2 ls and check your app has been up and running for 5 min (and not only few secs because you just logged in).





broken image