SSH: Quit emulationstation command?
-
What command do I use to gracefully quit Emulation Station during an SSH session?
-
I'm not sure how graceful you want it to be but
killall emulationstation
might do the trick. I am behind on versions so something may have changed but worth a shot until someone corrects me. -
Appreciate the response, thank you.
I am aware of the "killall" command but I've assumed using it would be a dead stop vs a proper quit where it would save the xml data. I stand to be corrected though if using it will save my data. I was hoping that there would be some fancy command or something, after all hitting the quit button must be evoking some sort of command wouldn't it?
-
Well, there is precious little gracefullness going on once the SDL_QUIT event has been recieved: https://github.com/RetroPie/EmulationStation/blob/master/es-app/src/main.cpp#L331
Sadly, that part includes the deleting (and cleanup + saving) of system xml files, so yeah...What should work, is sending the SDL_QUIT event manually, which would be ctrl-c on the console. Maybe via ssh you could try sending 'kill SIGTERM emulationstation' ?
-
I have been looking at this before and I think what we need to is to send function keys command. SSH Client to SSH Server (aka Retropie).
This is something a found out
-
Connect wiht your SSH client and type or copy paste below (exact):
kill $(pidof emulationstation)
done!
PS I will be creating a sh script to put in your EmulationStarion Retropie menu. And then go to your Retropie menu for using Steven Selph's Scraper Script (as this is the most obvious reason)
*You can also quit using F4 keypress or Menu Quit options
-
@2play Did you end up creating that script? I think it should be added to Steven Selph's Scraper Script so when you try to use it via SSH, insted of telling you "Exit emulation for the scrapper to work properly (or something like this)" it could show you the same warning but with a confirmation form, like "Do you want to close it right now?" that will launch your script.
-
@hiulit
Sorry I ve missed all these as I did not get notifications.
I was working on my new RetroPie base called the PlayBox. I have tons of new scripts there and actually I ve added Skyscraper By Lars.
Great features, almost all systems supported and many sources for scraping.
I loved SSScraper but moved to Skraper.net on PC and now testing Skyscraper.
Ive written a script on his channel to install and update it automatically as you had to do all manuallyI have a script to safely exit ES (created on someone else code - credit given).
I think i ll use this to exit ES so Metadata can be written safely and then call Skyscraper or SSS
Ill test and report back -
@2play Thanks and welcome back! I've been a little bit out too...
Do you have all those scripts like in GitHub or something?
When I go back to "finish" my RetroPie setup (you never finish it :P), I'll try and use Skyscraper.
-
@hiulit @2Play
Maybe this script is interesting for you: Multi Switch Shutdown Script. There you have several options like and parameters like--es-shutdown
or--es-restart
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.