Hello Mike,
you are using a shebang with "#!/usr/bin/env", this does not work well,
see https://mmonit.com/monit/documentation/monit.html#SERVICE-METHODS

Try to use a shebang pointing to the bash and not to env.

A suggestion only,
Lutz

Reply via email to