Read the statement by Michael Teeuw here.
Can updatenotification be configured to restart the main MM process?
-
I have updatenotification configured with update commands to perform module specific updates.
"module":"updatenotification", "position":"top_center", "config":{ updates: [ { "MMM-MyStandings": "git pull", }, { "MMM-MyScoreboard": "git pull && npm install --omit=dev", }, ], },is there way to configure a MM restart command in response to a “restart required” notification?
pm2 restart MM -
@khrusher yes. it can only restart w pm2 and knows which app to restart

-
Ok, I read that parameter as ‘restart once one of the modules in the Updates array are updated’
So updateAutorestart is based on general MM updates.
How does it know the name of the app to restart?
does it run
mp2 restart all -
@khrusher one can determine the path of the running app
-
@sdetweil nice. how do I mark item as ‘Resolved’?
I found it!
-
K khrusher has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login