MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Can updatenotification be configured to restart the main MM process?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 78 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      khrusher
      last edited by

      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
      
      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @khrusher
        last edited by

        @khrusher yes. it can only restart w pm2 and knows which app to restart

        IMG_1109.png

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          khrusher @sdetweil
          last edited by

          @sdetweil

          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
          
          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @khrusher
            last edited by

            @khrusher one can determine the path of the running app

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              khrusher @sdetweil
              last edited by khrusher

              @sdetweil nice. how do I mark item as ‘Resolved’?

              I found it!

              1 Reply Last reply Reply Quote 0
              • K khrusher has marked this topic as solved
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy