I was using root just trying to get it to work. I'm not sure what you mean
about line endings here... I don't have any \n in my file... or do you mean
the character return ? I'm a little confused.


Markus Schönhaber-10 wrote:
> 
> tomcatastrophe:
> 
>> When I try to run /etc/init.d/tomcat restart or /sbin/service tomcat
>> restart
>> (or stop or start) I get this error:
>> 
>> -bash: /etc/init.d/tomcat: /bin/bash^M: bad interpreter: No such file or
>> directory
> 
> When you create script files for Linux on a Windows box, make sure you
> save them with the proper line endings, i. e. \n instead of \r\n.
> dos2unix might help.
> 
>> RUN_AS_USER=root # Adjust run user here
> 
> Not a good idea.
> 
> -- 
> Regards
>   mks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-startup-as-service-on-CentOS-5.3-tp24203574p24203771.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to