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.

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

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 4.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.
    • R Offline
      RudyRipDraw
      last edited by

      Re: Complete remote administration using SSH

      1 Reply Last reply Reply Quote 0
      • mochmanM Offline
        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 Offline
          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
          • mochmanM Offline
            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy