MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Nubie question... How do I kill magic mirror so that I test new settings for config.js

    Troubleshooting
    2
    4
    3624
    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.
    • R
      RudyRipDraw last edited by

      Re: Complete remote administration using SSH

      1 Reply Last reply Reply Quote 0
      • mochman
        mochman Module Developer last edited by mochman

        If you’re using pm2 then SSH in and run
        pm2 stop mm

        If you’re using the nohup command to run it, you’ll have to find the PID by running
        ps aux | grep npm
        You should see something like
        pi 26292 38.3 4.3 122360 38428 pts/0 Sl 19:17 0:03 npm
        pi 26318 0.0 0.2 4276 1952 pts/0 S+ 19:18 0:00 grep --color=auto npm

        use the first number you see in the line that just has “npm” (in this example it’s 26292)

        then run
        kill 26292 (using your PID number)

        I recommend setting up pm2. It makes it much easier.

        1 Reply Last reply Reply Quote 1
        • R
          RudyRipDraw last edited by

          thanks, will look into pm2.

          Also it turns out that if I run “DISPLAY=:0 npm start” from a ssh terminal, magic mirror shows up on the HDMI display. When I control-c on the ssh terminal, it stops the magic mirror.

          1 Reply Last reply Reply Quote 0
          • mochman
            mochman Module Developer last edited by mochman

            Right, the nohup command removes the process from the terminal window. If you shut down the terminal, it’ll also shut down your magic mirror without the nohup command before npm.

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