Restart ES by commandline?
Melvin.FoX last edited by
@daeks you could also check for process id by ps aux commend and then type kill command with the specific process id but I still think that your option is better.
You can always make new alias in .bashrc file to assign this long command to just one small word like eg. eskill.
Currently I am struggeling with:
export HOME=/home/pi export TERM="linux" emulationstation > /dev/tty1 2>&1 &
ES gets restarted but starting a game results in "Unable to open /dev/tty"
What I am missing here? :( @BuZz can you help?
Just trigger the ES launch script to restart it. Create
/tmp/es-restartand send a SIGINT to es.
 corrected filename.
@BuZz omg, it could be simple.... thank you very much!
My final solution was
sudo openvt -c 1 -s -f emulationstation 2>&1but your way is much more appreciated :)
I am doing now
echo "" > /tmp/es-restart && killall emulationstation
daeks last edited by
@BuZz thanks :) do you also know a quick way to close a running game? Restarting ES while a game is running looks not very good :/
@daeks you can kill retroarch, but if it's something else that won't help.
Something like this might be better - get the child process of the runcommand process, and send a SIGINT to that.
kill $(pgrep -P $(pgrep -f "bash /opt/retropie/supplementary/runcommand/runcommand.sh"))
meleu last edited by
@daeks I would try to kill the command present on 4th line of
@daeks strange as it shouldn't kill runcommand but the child. You could try meleu's suggestion, or just don't allow restarting if a game is running.