Questions tagged [pid]

Process Identifier (PID)

In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by most operating system kernels (such as that of UNIX, Mac OS X or Microsoft Windows) to (temporarily) uniquely identify a process. This number may be used as a parameter in various function calls allowing processes to be manipulated, such as adjusting the process's priority or killing it altogether.

Source: wikipedia

105 questions
1
vote
1 answer

Windows Server 2008 R2 Troubleshooting PID Leaking

One of our servers has been leaking PID like crazy. I wrote a simple scheduled script, and it seems that every day the highest PID increases by approx. 300'000. E.g., if on Aug.24 00:00 the highest PID is 50'796, on Aug.25 00:00 the highest PID is…
pepoluan
  • 4,918
  • 3
  • 43
  • 71
1
vote
1 answer

Making directories visible only by owners

I am in the process of creating a secured shared hosting and, between the hosting features, I want to give SSH access. I've already chrooted the users via SSH, FTP and PHP (using PHP-FPM), and would like to improve the hosting's security even…
1
vote
2 answers

PID file for C program for monit

How can I create a pid file for a C program to be used in monit, and how do I monitor that C program using monit?
1
vote
2 answers

pid directory is deleted

I'm having a service (Sonatype's Nexus) which failed to init since it PID folder (/var/run/nexus) was deleted. Any idea how that folder can be deleted? The nexus service, when gracefully stopped, does not remove the folder but only the pid…
user49204
  • 145
  • 4
1
vote
1 answer

Thread dump to a file

I read that I can find the process ID and then use kill command to save the thread dump to a file. But the following example does not return anything... # ps aux | grep -i java wcuser 9136 0.0 17.2 3416012 1412772 ? Sl Oct10 2:32…
shantanuo
  • 3,459
  • 8
  • 47
  • 64
1
vote
4 answers

Nagios monitor process by pid file

Is there any possibilty to monitor processes with nagios? I found the check_procs command, which I can't use because it doesn't let me specify a file to read the PID from. Also, I don't seem to find anything about this on Google so perhaps I am…
moritz
  • 113
  • 1
  • 5
1
vote
3 answers

Identify PID of a transient network connection on HP-UX 11.23

We've tried lsof and tcpdump to capture the PID of a process that is attempting to make connections. Any ideas?
Chris
1
vote
0 answers

dovecot: can't open pid file

im new here :) after 2 days of googling and trying whatever i could I can't get rid of this: systemd[1]: Can't open PID file /var/run/dovecot/master.pid (yet?) no such file or directory i found info to change ownership of /var/run/dovecot/…
slowpoke
  • 11
  • 3
1
vote
0 answers

PostgreSQL 9.5 not listening; cluster is down; "too many levels of symbolic links"

I'm working on a remote VPS running Ubuntu 16.04 LTS. After a software update (apt upgrade) in which postgresql-common was updated, my PostgreSQL 9.5 server stopped listening on any port. # All produce no results sudo netstat -nltp | grep 5432 sudo…
Arthur
  • 111
  • 2
0
votes
2 answers

How to get pid of a process that runs quickly

I'm on a CentOS 6 system. I'd like to know the pid of a curl command I'm running. Usually to get the pid of a process I use ps or pidof or pgrep or the like. But I generally use those for long running processes...often for processing running too…
firebush
  • 131
  • 4
0
votes
1 answer

When ssh to remote host, how can I know the bash pid running on remote host?

When I ssh to a remote host, Is it possible that I get the remote bash pid in my local machine? or vice versa? for example on local terminal, I simply do ssh and keep connection to run my tasks: ssh user@remote.com and the ps is like this on local…
0
votes
1 answer

Kill ssh process

I was connected to an ubuntu machine and instead of typing exit to logout, I killed the ssh process by its PID: kill PID Now, when I try to connect again to the ubuntu machine, I get the following error message: Connection closed by xx.xxx.xxx.xx…
ARR
  • 11
  • 4
0
votes
2 answers

Using /dev/shm folder for pid files on RHEL6/CentOS6?

RHEL7/CentOS7 has a dedicated folder: $XDG_RUNTIME_DIR (e.g. /run/user/1000) for pid files, that folder is a tmpfs. However RHEL6/CentOS6 does not have $XDG_RUNTIME_DIR. RHEL6(also RHEL7) has a folder using similar type: /dev/shm. After some testing…
Boying
  • 103
  • 3
0
votes
1 answer

get process id of openvpn client in bash script

In a bash script I am starting openvpn as a client like this: #!/bin/bash conf_file=/etc/openvpn/blahblah.conf openvpn_pid_file="/var/run/openvpn-client/ovpnc.pid" command_line="/usr/bin/openvpn --config $conf_file…
MountainX
  • 681
  • 3
  • 12
  • 25
0
votes
1 answer

Saving PID in nohup output

I want to save the PID of a nohup process as part of the name of nohup's generated output file. This is going in the right direction, but only works if the process with it's ID is already settled, i.e. only works at the next line. That means that it…
colidyre
  • 137
  • 6