/etc/init.d/tomcat9: no such file or directory code example Example: env: ‘/etc/init.d/tomcat’: No such file or directory sed -i -e 's/\r//g' /etc/init.d/your_init_script