The error you mentioned ("bash: restart: command not found' or 'restart: not found") indicates a script called 'restart' cannot be found (I don't think it is a built-in command in BASH). As has already been suggested, check you PATH variable or use the full path when calling it.
As an aside, to help troubleshoot a script and pin-point the line that causes a problem, try:
sh -x <script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.