Updated init agent init script

Use su rather than sudo (systemd fails with no tty on sudo) and search for the process for status checks.