MagicMirror Forum

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

    SOLVED autostart + serveronly

    Troubleshooting
    2
    5
    84
    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.
    • J
      JohnGalt last edited by

      I have a new MM instance for development and testing in an Ubuntu VM. My goal is to have MM autostart when the VM starts, and run in serveronly mode, since the VM has no console display…

      I ran Sam’s script to install the instance, then went back and ran the autostart script, but it appears to start a regular MM instance and not a serveronly. I have uncommented the serverOnly command in config.js, set it to “true” and rebooted. It appears the regular instance of MM starts, but not the serveronly. I CAN manually start MM with ‘node serveronly’, but then it looks like two instances are running.

      Where am I going wrong?

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

        @johngalt pm2 startup starts installers/mm.sh

        just change the mm.sh from

        npm start
        to
        npm run server

        Sam

        Create a working config
        How to add modules

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

          @johngalt pm2 startup starts installers/mm.sh

          just change the mm.sh from

          npm start
          to
          npm run server

          Sam

          Create a working config
          How to add modules

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

            @sdetweil - thanks! I figured it just had to be something straightforward. I appreciate you pointing me to the right place.

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

              @johngalt just for info.

              pm2 info MagicMirror
              (or whatever named task pm2 has defined)

              will tell you what it starts, and a bunch of other info

              Sam

              Create a working config
              How to add modules

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

                @sdetweil - Thanks Sam. That is what I had done, and so knew there were two instances running. I appreciate the tip and reminder.

                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