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.

    Magic Mirror Mac Mini npm start

    Scheduled Pinned Locked Moved General Discussion
    18 Posts 3 Posters 4.7k Views 3 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.
    • ? Offline
      A Former User
      last edited by

      forget pm2. this could be a help.
      https://stackoverflow.com/questions/6442364/running-script-upon-login-mac

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        drx1984 @Guest
        last edited by

        @Sean
        thanks, do I need to write a script?

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @drx1984
          last edited by

          @drx1984
          Wait a second. After trial on my mac, I’ll post for you. (And I think pm2 could also be available with launchd)

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            drx1984 @Guest
            last edited by

            @Sean ok, that would be very nice

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @drx1984
              last edited by A Former User

              @drx1984
              Ok. I found incredibly simple solution.

              sudo pm2 startup darwin
              

              That’s all. It is already served by pm2 since https://github.com/Unitech/pm2/pull/936
              (It will take a few seconds until MM starts from bootup)

              D 2 Replies Last reply Reply Quote 0
              • D Offline
                drx1984 @Guest
                last edited by

                @Sean said in Magic Mirror Mac Mini npm start:

                sudo pm2 startup darwin

                ok thanks the command: sudo pm2 startup darwin tonight test and report you.
                Many Thanks

                1 Reply Last reply Reply Quote 0
                • D Offline
                  drx1984 @Guest
                  last edited by

                  @Sean I just tried, unfortunately I get an error message. Do you know how I can solve this?
                  Thank you

                  0_1558465101765_pm2_error.JPG

                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @drx1984
                    last edited by

                    @drx1984 0_1558592102911_pm2.png
                    Hmmm… For me it works.
                    Check ~/Library/LaunchAgents/directory whether exists or not.
                    You can save your xml (under Template) totarget path by manual then execute command list

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