apps kill and restart

changed all file commands to bash command lines, apps now are terminated
and run with new settings.