working ksrestart.sh