11-17-2017
Command to get exact tomcat process I am running ignoring other java process
Team,
I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list.
How do I get my exact tomcat process running and that is unique? via shell script?
Last edited by rbatte1; 11-17-2017 at 05:47 AM..
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Everybody,
I want to create a shell script named as say "jip" and it is runned.
And i want that when i do ps + grep for the process than this jip should be shown as process.
Infact there might be process with name jip which is already running. (3 Replies)
Discussion started by: shambhu
3 Replies
2. Shell Programming and Scripting
Hello all,
I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted.
Thanks in advance
Regards,
pradeep kulkarni.
:mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies
3. UNIX for Dummies Questions & Answers
I have a script that executes a MAIN JAVA FILE
It does check if the process is already running or not by using this code
w_pid=`ps -efx | grep -v grep | grep "FileTransactionArchiveMain dvlp"|awk '{print $11}'`
if
then
#echo 'Another instance is running.'
exit
fi
Now I... (1 Reply)
Discussion started by: akabir77
1 Replies
4. Shell Programming and Scripting
Hello
I'm using GNU screen for an application that I'm making. I will try to explain:
This application opens 2 screen session, A and B. Screen session A has a script running in teh first window. I want to be able to switch from screen session A to screen session B, from the script running in... (1 Reply)
Discussion started by: jondecker76
1 Replies
5. UNIX for Dummies Questions & Answers
I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is... (2 Replies)
Discussion started by: saurabhnsit2001
2 Replies
6. BSD
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies
7. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies
8. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies
9. Shell Programming and Scripting
Please do not post a technical question in the @How to contact....' forum. I have moved this for you.
Hello Everyone,
Please help me on this,
Requirement here is to check whether the process is running using the process id.
For the below scenario, I m trying to grep 1750 process id to... (3 Replies)
Discussion started by: Hari A
3 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_edir88
OCF_HEARTBEAT_EDIR88(7) OCF resource agents OCF_HEARTBEAT_EDIR88(7)
NAME
ocf_heartbeat_eDir88 - Manages a Novell eDirectory directory server
SYNOPSIS
eDir88 [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for managing an eDirectory instance. Manages a single instance of eDirectory as an HA resource. The "multiple instances"
feature or eDirectory has been added in version 8.8. This script will not work for any version of eDirectory prior to 8.8. This RA can be
used to load multiple eDirectory instances on the same host.
It is very strongly recommended to put eDir configuration files (as per the eDir_config_file parameter) on local storage on each node. This
is necessary for this RA to be able to handle situations where the shared storage has become unavailable. If the eDir configuration file is
not available, this RA will fail, and heartbeat will be unable to manage the resource. Side effects include STONITH actions, unmanageable
resources, etc...
Setting a high action timeout value is _very_ _strongly_ recommended. eDir with IDM can take in excess of 10 minutes to start. If heartbeat
times out before eDir has had a chance to start properly, mayhem _WILL ENSUE_.
The LDAP module seems to be one of the very last to start. So this script will take even longer to start on installations with IDM and LDAP
if the monitoring of IDM and/or LDAP is enabled, as the start command will wait for IDM and LDAP to be available.
SUPPORTED PARAMETERS
eDir_config_file
Path to configuration file for eDirectory instance. (unique, optional, string, default /etc/opt/novell/eDirectory/conf/nds.conf)
eDir_monitor_ldap
Should we monitor if LDAP is running for the eDirectory instance? (optional, boolean, default 0)
eDir_monitor_idm
Should we monitor if IDM is running for the eDirectory instance? (optional, boolean, default 0)
eDir_jvm_initial_heap
Value for the DHOST_INITIAL_HEAP java environment variable. If unset, java defaults will be used. (optional, integer, no default)
eDir_jvm_max_heap
Value for the DHOST_MAX_HEAP java environment variable. If unset, java defaults will be used. (optional, integer, no default)
eDir_jvm_options
Value for the DHOST_OPTIONS java environment variable. If unset, original values will be used. (optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 600.
stop
Stops the resource. Suggested minimum timeout: 600.
monitor
Performs a detailed status check. Suggested minimum timeout: 60. Suggested interval: 30.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a eDir88 resource using the crm(8) shell:
primitive p_eDir88 ocf:heartbeat:eDir88
op monitor timeout="60" interval="30"
SEE ALSO
http://www.linux-ha.org/wiki/eDir88_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_EDIR88(7)