"sudo: sorry, you must have a tty to run sudo"

The init script does not work on Red Hat based system.