Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Session PID & socket connection pid Post 302069953 by blowtorch on Thursday 30th of March 2006 11:06:25 AM
Old 03-30-2006
1. When you run the application, run the command: ps -ef | grep name_of_app. This will show you the pids (processes) that are running for your application. Also, regarding the socket connection, unix treats a socket connection as just another file that is opened by the process. However, your application might have a process that is listening to a particular port and then spawns a new process that actually connects to the database.
So it is a bit difficult to tell you something like that.

2. The three conditions that you can see are some of the different conditions that your socket can have. I do not think that you can release sockets/ports without killing the process that is listening on the port.
 

10 More Discussions You Might Find Interesting

1. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

2. Shell Programming and Scripting

KILL PID, intern should kill another PID.

Hi All, In my project i have two process runs in the back end. Once i start my project, and execute the command ps, i get below output: PID TTY TIME CMD 9086 pts/1 0:00 ksh 9241 pts/1 0:02 java 9240 pts/1 0:00 shell_script_bg java with 9241 PID is the main... (4 Replies)
Discussion started by: rkrgarlapati
4 Replies

3. UNIX for Dummies Questions & Answers

how to find the owner PID of open socket on Solaris9?

Hi all, I am trying to connect the open socket and its owner PID on my Solaris9 system. But it seems not very easy. As netstat is not as powerful as it is on Linux platform, without the "-program" option, and "lsof -i <UDP|TCP>@<hostIP>" won't show the one i want although it lists some... (1 Reply)
Discussion started by: sleepy_11
1 Replies

4. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

5. UNIX for Dummies Questions & Answers

Get pid

Hello people, This question might seem to be a little naive but here it goes: I want to know the PID of a script that is running in the background. eg: There is a script called Data_Downloader.sh I am using the command: ps -ef | grep Data_Downloader.sh But I am getting the output as wrkarea... (9 Replies)
Discussion started by: Rajat
9 Replies

6. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

7. Shell Programming and Scripting

KSH 88 - Can I find the PID for an IP connection?

Hi, If I use this command netstat | grep "1268" it shows me all IP addresses connected via port 1268, which is half of what I want. I would like to be able to then map these against a PID on the system, and also thereby get the userid. I have done a couple of days google bashing but... (3 Replies)
Discussion started by: gcraill
3 Replies

8. Red Hat

How to kill a TCP connection which has status TIME_WAIT & no PID

Hi, I want to kill TCP connections which have status as TIME_WAIT & no PID (as per the output of the "netstat - p" command). Is there any command/utility available to kill connections to a specific port or IP address. The problem is that these connections don't have process ID (see... (4 Replies)
Discussion started by: Davinder31may
4 Replies

9. Shell Programming and Scripting

Pid=$!

Hello, I would like to know what this command means? PID=$! what does "!" stand for? (5 Replies)
Discussion started by: googlietdr
5 Replies

10. Linux

How to easily identify socket given a PID on Linux?

I have the PID of a process running on Linux mymac 2.6.18-417.el5 #1 SMP Sat Nov 19 14:54:59 EST 2016 x86_64 x86_64 x86_64 GNU/Linux I need to get the ip & port i.e socket details of the given PID (32752). Based on a suggestion on my other thread i tried bash-3.2$ netstat -anpt | grep... (8 Replies)
Discussion started by: mohtashims
8 Replies
VIRTLOCKD(8)						      Virtualization Support						      VIRTLOCKD(8)

NAME
virtlockd - libvirt lock management daemon SYNOPSIS
virtlockd [ -dv ] [ -f config_file ] [ -p pid_file ] virtlockd --version DESCRIPTION
The virtlockd program is a server side daemon component of the libvirt virtualization management system that is used to manage locks held against virtual machine resources, such as their disks. This daemon is not used directly by libvirt client applications, rather it is called on their behalf by libvirtd. By maintaining the locks in a standalone daemon, the main libvirtd daemon can be restarted without risk of losing locks. The virtlockd daemon has the ability to re-exec() itself upon receiving SIGUSR1, to allow live upgrades without downtime. The virtlockd daemon listens for requests on a local Unix domain socket. OPTIONS
-h, --help Display command line help usage then exit. -d, --daemon Run as a daemon and write PID file. -f, --config FILE Use this configuration file, overriding the default value. -p, --pid-file FILE Use this name for the PID file, overriding the default value. -v, --verbose Enable output of verbose messages. -V, --version Display version information then exit. SIGNALS
On receipt of SIGUSR1 virtlockd will re-exec() its binary, while maintaining all current locks and clients. This allows for live upgrades of the virtlockd service. FILES
When run as root. SYSCONFDIR/virtlockd.conf The default configuration file used by virtlockd, unless overridden on the command line using the -f|--config option. LOCALSTATEDIR/run/libvirt/virtlockd-sock The sockets libvirtd will use. LOCALSTATEDIR/run/virtlockd.pid The PID file to use, unless overridden by the -p|--pid-file option. When run as non-root. $XDG_CONFIG_HOME/virtlockd.conf The default configuration file used by libvirtd, unless overridden on the command line using the -f|--config option. $XDG_RUNTIME_DIR/libvirt/virtlockd-sock The socket libvirtd will use. $XDG_RUNTIME_DIR/libvirt/virtlockd.pid The PID file to use, unless overridden by the -p|--pid-file option. If $XDG_CONFIG_HOME is not set in your environment, libvirtd will use $HOME/.config If $XDG_RUNTIME_DIR is not set in your environment, libvirtd will use $HOME/.cache EXAMPLES
To retrieve the version of virtlockd: # virtlockd --version virtlockd (libvirt) 1.1.1 # To start virtlockd, instructing it to daemonize and create a PID file: # virtlockd -d # ls -la LOCALSTATEDIR/run/virtlockd.pid -rw-r--r-- 1 root root 6 Jul 9 02:40 LOCALSTATEDIR/run/virtlockd.pid # BUGS
Please report all bugs you discover. This should be done via either: a) the mailing list <http://libvirt.org/contact.html> or, b) the bug tracker <http://libvirt.org/bugs.html> Alternatively, you may report bugs to your software distributor / vendor. AUTHORS
Please refer to the AUTHORS file distributed with libvirt. COPYRIGHT
Copyright (C) 2006-2013 Red Hat, Inc., and the authors listed in the libvirt AUTHORS file. LICENSE
virtlockd is distributed under the terms of the GNU LGPL v2.1+. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE SEE ALSO
libvirtd(8), <http://www.libvirt.org/> libvirt-1.1.1 2014-06-17 VIRTLOCKD(8)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy