• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 start when rebooting

Scheduled Pinned Locked Moved Solved Troubleshooting
9 Posts 2 Posters 1.6k 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
    sakliadem
    last edited by Apr 3, 2022, 1:00 PM

    I’ve followed all the instruction for auto starting my mirror when rebooting , from https://docs.magicmirror.builders/configuration/autostart.html#using-pm2 but it still not starting when rebooting my RPi

    S 1 Reply Last reply Apr 3, 2022, 1:06 PM Reply Quote 0
    • S Offline
      sakliadem @sdetweil
      last edited by Apr 3, 2022, 3:59 PM

      @sdetweil it’s working now thanks , I have some others code that I want to run them in the background , how can i add them ?

      S 1 Reply Last reply Apr 3, 2022, 4:14 PM Reply Quote 0
      • S Offline
        sdetweil @sakliadem
        last edited by Apr 3, 2022, 1:06 PM

        @sakliadem can u show the output of pm2 logs --lines=30

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S S 2 Replies Last reply Apr 3, 2022, 1:21 PM Reply Quote 0
        • S Offline
          sakliadem @sdetweil
          last edited by Apr 3, 2022, 1:21 PM

          @sdetweil Capture d’écran 2022-04-03 142101.png

          S 1 Reply Last reply Apr 3, 2022, 1:23 PM Reply Quote 0
          • S Offline
            sakliadem @sakliadem
            last edited by Apr 3, 2022, 1:23 PM

            @sakliadem when I write pm2 start mm.sh , it starts correctly , but when rebooting , nothing happens

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @sdetweil
              last edited by Apr 3, 2022, 1:51 PM

              @sakliadem after doing the pm2 start, you have to do the pm2 save, so it will know to restart that process…

              u could use my script that does all that
              see fixuppm2 at the bottom of

              https://github.com/sdetweil/MagicMirror_scripts

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Apr 3, 2022, 3:59 PM Reply Quote 0
              • S Offline
                sakliadem @sdetweil
                last edited by Apr 3, 2022, 3:59 PM

                @sdetweil it’s working now thanks , I have some others code that I want to run them in the background , how can i add them ?

                S 1 Reply Last reply Apr 3, 2022, 4:14 PM Reply Quote 0
                • S Offline
                  sdetweil @sakliadem
                  last edited by sdetweil Apr 3, 2022, 4:17 PM Apr 3, 2022, 4:14 PM

                  @sakliadem, for each

                  pm2 start xxx.sh
                  pm2 save

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Apr 3, 2022, 4:17 PM Reply Quote 0
                  • S Offline
                    sakliadem @sdetweil
                    last edited by Apr 3, 2022, 4:17 PM

                    @sdetweil and how to stop the auto run ?

                    S 1 Reply Last reply Apr 3, 2022, 4:19 PM Reply Quote 0
                    • S Offline
                      sdetweil @sakliadem
                      last edited by sdetweil Apr 3, 2022, 4:19 PM Apr 3, 2022, 4:19 PM

                      @sakliadem stop from auto starting?

                      pm2 stop xx
                      pm2 save

                      reboot

                      see pm2 – help
                      for all the things it can do

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        2/9
                        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