shell script

March 11, 2009 at 04:54:46
Specs: linux
Need to start and stop servicemix via shell script.

See More: shell script

Report •


#1
March 11, 2009 at 05:59:12
Try the following command:

service servicemix stop

If that stops the service properly, then put that in a script
ex:

#!/bin/ksh
service servicemix stop

Don't forget to chmod it so it can be executed.


Report •

#2
March 11, 2009 at 06:12:21
I tried it not working.

Report •

#3
March 11, 2009 at 06:27:04
Ok then you have to read the documentation on your application to figure out how to shut it off.

I know you could use the kill command but I imagine there has to be a cleaner way of doing it.


Report •

Related Solutions

#4
March 11, 2009 at 06:31:00
ok.
do you know how to create *.pid file.

Report •

#5
March 11, 2009 at 07:20:21
Not offhand but I quickly pulled up google and typed in, "what is a .pid file and found the following:

http://daemons.rubyforge.org/classes/Daemons/PidFile.html

If you google the same, or just ".pid file" you should find all the info you need.


Report •

#6
March 11, 2009 at 08:40:29
Thank u :)
i want full shell script to start servicemix service.

Report •

#7
March 11, 2009 at 13:44:26
PID is process id

Depends on OS as to how to show processeses.

http://en.wikipedia.org/wiki/Proces...

You can control via it's number.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


Report •


Ask Question