tweak restart script for slave