adding stop support for linux
complete run script.