MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Auto start when rebooting

    Troubleshooting
    2
    9
    70
    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
      sakliadem last edited by

      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 Reply Quote 0
      • S
        sakliadem @sdetweil last edited by

        @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 Reply Quote 0
        • S
          sdetweil @sakliadem last edited by

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

          Sam

          Create a working config
          How to add modules

          S S 2 Replies Last reply Reply Quote 0
          • S
            sakliadem @sdetweil last edited by

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

            S 1 Reply Last reply Reply Quote 0
            • S
              sakliadem @sakliadem last edited by

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

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

                @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

                Create a working config
                How to add modules

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

                  @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 Reply Quote 0
                  • S
                    sdetweil @sakliadem last edited by sdetweil

                    @sakliadem, for each

                    pm2 start xxx.sh
                    pm2 save

                    Sam

                    Create a working config
                    How to add modules

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

                      @sdetweil and how to stop the auto run ?

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

                        @sakliadem stop from auto starting?

                        pm2 stop xx
                        pm2 save

                        reboot

                        see pm2 – help
                        for all the things it can do

                        Sam

                        Create a working config
                        How to add modules

                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy