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.

    Auto-restart after quitting

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 375 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.
    • S Offline
      sdetweil @cpcode
      last edited by sdetweil

      @cpcode do you use pm2 to autostart MM at boot?

      if so, pm2’s JOB is to keep the app running… if it crashes, it is restarted…

      so, after you minimize (instead of close)
      open a terminal window and do

      pm2 status
      then
      pm2 stop x
      where x is the name or number of the row the app is on

      then to restart without rebooting
      pm2 start x

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        cpcode @sdetweil
        last edited by

        @sdetweil I’m not using pm2 - I didn’t install it and the log I posted above has a row that says ‘You are not using pm2’. Is there a similar thing that would keep rebooting my mirror?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @cpcode
          last edited by

          @cpcode can you show me how you start it? is there a bash script you created?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            cpcode @sdetweil
            last edited by

            @sdetweil I open the Git Bash console, go to the MagicMirror folder, and type npm start
            No flags or scripts. Is there a better way?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @cpcode
              last edited by

              @cpcode well, a script or pm2 with a script…

              I’ve never heard of MM restarting if you use npm start and select close or use ctrl-q

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 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