Stashbot regularly dies, because of netsplits and whatnot. For the simplest cases, a restart loop should be (re)instated.
This is how it used to work, as documented by Tim: «It is started automatically from /etc/rc.local so it's not usually necessary to run this shell script directly. Sometimes the python client gets stuck. So kill it and let it restart itself [...]»
https://wikitech.wikimedia.org/w/index.php?title=Morebots&oldid=46101
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50485