Remove pointless (potential) usage of sudo.

We should never be required to use sudo at this place because we are meant to
be called by "root" and therefore are allowed to send the "kill" signal
anyways.

refs #209
Use a proper method to get the PID of the child process.

And print the "ok" message only in case of success.

refs #209