-Original Message-
From: tomcatastrophe
Sent: Thursday, June 25, 2009 9:47
Subject: Tomcat startup as service on CentOS 5.3
I have found and tried some startup scripts online and added
them to /etc/init.d as tomcat, so /etc/init.d/tomcat
I ran chmod a+x tomcat on the script
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
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
Sure enough, this did it! VERY helpful.
Jason Pyeron wrote:
-Original Message-
From: tomcatastrophe
Sent: Thursday, June 25, 2009 9:47
Subject: Tomcat startup as service on CentOS 5.3
I have found and tried some startup scripts online and added
them to /etc/init.d as
tomcatastrophe:
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.
I'm talking about the character(s) that denotes a line ending, return
in a
I have gotten the script to work now, but I do want to change the user. When
I change to a user that isn't root I get permission denied errors when
trying to run the script.
What do I need to do to get a different user to be able to run the script?
Normally I'd just run sudo, but I'm not sure
Ok, I changed the owner and it works now. :)
tomcatastrophe wrote:
I have gotten the script to work now, but I do want to change the user.
When I change to a user that isn't root I get permission denied errors
when trying to run the script.
What do I need to do to get a different user