scripts: update PID var when restarting
Merge pull request #250 from alexeicolin/pr--init-script-restart-fix

scripts: update PID var when restarting