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 •

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

service servicemix stop

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

Report •

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

Report •

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

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

Report •

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:

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

Report •

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

Report •

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

Depends on OS as to how to show processeses.

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