Process Identifier (PID)

learn more… | top users | synonyms

-1
votes
0answers
10 views

opendkim dead but pid file exists

I tried delete /var/run/opendkim/opendkim.pid, but after restart it's again shown error: [root@server ~]# rm -rf /var/run/opendkim/opendkim.pid [root@server ~]# service opendkim restart Stopping ...
0
votes
1answer
40 views

systemd, logrotate and PID-files

I'm packaging some daemon for debian 8 and systemd. The daemon can create PID-file by itself, but it has no permissions to write into /run because of non-root user. It used to create PID-file via old ...
1
vote
1answer
20 views

zombie lxc swap file: text file busy but no pid

I have a server running Ubuntu 12.04.5 LTS (Precise Pangolin). On that server I created a new Linux container: $ sudo lxc-create -n mycontainer After a while I decided to get rid of this container: ...
0
votes
0answers
13 views

OpenStack Swift: PID files don't correspond to running processes' PIDs; can't restart services - port already bound

I am running a Docker container with Swift ("Swift all-in-one") on a CentOS 7 host. I noticed that the PIDs in /var/run/swift/*.pid files differ from the actual PIDs running in the system: ...
2
votes
1answer
25 views

How properly handle deletion of pid.file in service script

I'm trying to write service script for application. So I can control it like this: ./myscript.sh start|stop|status On startup pid.file with process id creates, and based on it I can check status ...
-1
votes
1answer
50 views

pidof service doesn't exist

I am trying to set init.d script for some service - let it be uptime that is located in /usr/bin/uptime. Here is my script: #!/bin/bash # description: read service #Source function library . ...
1
vote
2answers
80 views

Clustered cron with one server only overlap allowed

I've setuped load balancers: lb1 (active) and lb2 (passive), Glustered web servers: web1 (active), web2 (backup), and some clustered database. Both web servers and databases are A pointed to the VIP ...
-2
votes
1answer
91 views

How to run a program in a new PID namespace

How to run a program in a new PID namespace? All tutorials on the internet show writing some custom C code in order to do it. Is there a command instead for that?
0
votes
1answer
676 views

Apache Failure on Centos 7 not starting

hellau everyone, i have a problem, that i cant resolve alone, so i need your help. i have installed on a centos 7 apache when im asking for the status of the service (systemctl status httpd) so i ...
1
vote
1answer
147 views

RamMap shows millions of processes that Task manager doesn't

I have a server 2008 box with 32GB RAM on and i have been investigating why it runs out of memory every 150 ish days. Task manager shows that we are running at 99% memory usage but all the processes ...
1
vote
0answers
19 views

When is a pid needed in log rotation?

I've read that providing pid in the newsyslog.conf is to ensure that the process writes in the new log file. However, I've tried log rotation without providing a pid because I couldn't find one for ...
2
votes
1answer
73 views

Ubuntu: Postfix and Cyrus expecting saslauthd PID file in different locations

I'm running postfix and cyrus in parallel on my server, as far as I understand this is a quite common think to do. Both daemons use sasl authorization. However, postfix is looking for the saslauthd ...
0
votes
3answers
43 views

Log pid than cpu higher than a value

I'm looking for a way to log the pid of process higher than a fixed value of cpu (ex 40%). I tried with command like this : ps -eo pcpu,pid,user,args | sort -k 1,2 -r | head -10 But, first, it sorts ...
0
votes
1answer
91 views

Where to create an AF_LOCAL/AF_UNIX socket file when not allowed to write in /var/run?

FSH says that socket and pid files should go to /var/run However, for security purpose, only root can creates file and subdirectories in this location. A common solution is creating a subdirectory ...
22
votes
3answers
3k views

Given a PID on Windows - how do I find the command line instruction that executed it?

On a database, I can get a list of all the currently running processes, and the sql command that kicked them off. I'd like to do a similar thing on a windows box. I can get the list of processes, ...
1
vote
5answers
597 views

Get the pid if 2 tomcat(s) is running

I have 2 tomcat's running, how do I get the pid if both have similar names? ps -ef | grep java root 12952 1 0 10:01 pts/0 00:00:03 /usr/lib/jvm/jre/bin/java ...
3
votes
2answers
291 views

Reduce PID_MAX Safely

I have one server in a cluster that was experiencing a process table leak. Because the developer responsible for the code was unavailable for a few days I increased pid_max on the machine as follows: ...
4
votes
2answers
854 views

Is it normal for PID's to be over 65535?

I have a managed VPS running on CloudLinux 6.6 x86_64 standard. It has a few websites with MySQL, PHP and Apache running with CPanel. I am working on a PHP system that needs to manage a PID and ...
1
vote
2answers
918 views

screen command process id

First of all sorry for my bad english and i am new at linux. When i do this, it can write process id to pid file start () { echo -n "Starting someserver.jar: " java -jar ...
-2
votes
1answer
64 views

How to get a process ID automaticly with command prompt [closed]

I´d want to know how to get a PID of a process with a single command in command prompt. I tried it with findstr, but I´m (apparently) not so smart to figure it out. You cannot use tasklist, because ...
-2
votes
1answer
489 views

Pid and Lock files are not created in Nginx custom build Centos 7

I am trying to install nginx from source. After make install, I had a look at /var/run/ folder but I cant find the nginx.pid file and nginx.lock files there. This is my configuration: sudo ...
0
votes
1answer
471 views

Restarting shell script with &disown using Monit

I have a shell script that runs a C++ backend mail system (PluginHandler). I need to monitor this process in Monit and restart it if it fails. The script: export ...
0
votes
1answer
1k views

Could not access pid file for elasticsearch

I am not a die-hard linux engineer, but I am having some problems with starting Elastic Search. Some stats: Server: Ubuntu Server 11.04 Elastic Search: 1.2.3 (installed with appitude) When I start ...
0
votes
1answer
611 views

Weird stuff in server error log?

I have a PHP script that shuts down server processes based on their PIDs. It seems like it works well, however, I found this weird stuff in Apache's error log. Any idea on what it's saying? [Thu Jul ...
1
vote
2answers
211 views

Problems with pid files when restoring OpenVZ snapshot

I am trying different ways to take snapshots of running openvz containers. Following this guide : http://openvz.org/Checkpointing_and_live_migration, I always encounter an issue with pid files ...
2
votes
0answers
33 views

Process identifier mask in z/OS

I've noticed a curious pattern to process identifier numbers on the z/OS system I'm working on (uname reports it as OS/390), they're either 1-4 digits long or 8 digits long but never in between. The ...
0
votes
1answer
2k views

Monit is not restarting process

I have monit to monit a process but it doesn't realize it is down. My monit configuration is this: check process xxx with pidfile /var/run/xxx.pid group yyy start program = "/etc/init.d/xxx start" ...
0
votes
1answer
1k views

sh bash script ambiguous redirect pid of file using single quotes

I have the following new line in my .sh file su --session-command='$javaCommandLine & >>$serviceLogFile 2>&1 & echo \$! >$pidFile' $serviceUser || return 1 When I had it ...
2
votes
2answers
170 views

How to map an ephemeral port to a pid?

I have a RHEL server with several apps on it and I am attempting to figure out which one of them is making calls to an external web service. I have TCP dumps that show the calls being made and through ...
1
vote
0answers
164 views

Upstart shows non-existent process running

I am using upstart 1.8-0ubuntu1 on Ubuntu-1210-quantal-64-minimal. It shows me nginx to be running, when it's not. # service nginx status nginx start/running, process 2543 # ps -p 2543 PID TTY ...
2
votes
2answers
9k views

Does kill -3 actually terminate a java process? Or just generate a thread dump?

CentOS 5.9 If I run kill -3 <java process pid> what actually happens? As per this red hat article, I understand that a Java Thread Dump is generated but is the process terminated? It doesn't ...
1
vote
2answers
876 views

If I know the PID number of a process can I know its name?

If I have the PID number for a process (on a UNIX machine), how can I know the name of its associated process? What do I have to do?
0
votes
2answers
646 views

What happens when pid_max is reached

As the title suggests, what happens when pid_max (32bit standard is 32768) is reached with many zombie-processes? On our server a user generates a lot of suphp defunct zombie processes and this ...
0
votes
1answer
95 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changees the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
0
votes
1answer
24 views

dead parents tree for debugging

$ ps UID PID PPID C STIME TTY TIME CMD il 17626 1 0 14:02 ? 00:00:00 /bin/bash /usr/bin/xdg-open file:///media/distrpart/Downloads/utorrent/test.png I want to ...
1
vote
1answer
12k views

MySQL server quit without updating PID file

I need help on how to start the mysql server. The problem arise when the root directory was full. To be able to login to directadmin and start mysql, I added a soft link of the /var/lib/mysql/ to ...
3
votes
1answer
1k views

Can I recover a nano process from a previous terminal?

My system crashed while I was in a nano session with unsaved changes. When I log back in via SSH I see the nano process still running when I do a ps. davidparks21@devdb1:/opt/frugg_batch$ ps -ef | ...
0
votes
1answer
1k views

nscd dead but subsys locked

service nsd status nscd dead but subsys locked It starts fine but eventually crashes... server: logfile: "/var/log/nsd.log" pidfile: "/var/run/nsd/nsd.pid" What randomly causes NSD to do this? ...
2
votes
4answers
3k views

Apache process consumes too much CPU

I have an ubuntu apache/php server running php doing appx 100 hits/sec and a PHP cron running in the background. I get occasionally high CPU load on one of the Apache processes which stays high ...
3
votes
1answer
629 views

Looking for way to log process terminations on OS X (Mac)

I'm looking for a way to log all process terminations on my Mac (OS X 10.6.8). (And see pid, timestamp, process name) I've implemented something similar for HP-UX, but it required a kernel-level ...
1
vote
1answer
105 views

failure daemon and changing pid number

proftpd, sshd and apache processes run with /etc/init.d/its-script on linux distro. I was monitoring 21, 22 and 80 ports with farm monitoring service: every 5 minutes service check each port and ...
0
votes
1answer
425 views

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 ...
5
votes
1answer
22k views

How to find the .pid file for a given process

I'm setting up monit and want to monitor a given python application. Monit does this by looking at the .pid files for processes, but I don't know where this would be. I also tried creating my own ...
3
votes
1answer
346 views

AIX: is it somehow possible to get a ForeignAddress/PID pair like we are able to get in Linux with netstat?

In Linux (RHEL), we are able to get a ForeignAddress/PID pair with "netstat -ntp" command: [root@rhel ~]# netstat -ntp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address ...
1
vote
1answer
142 views

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 ...
0
votes
3answers
12k views

PID history of a process

What I want to know is PIDs that were assigned to a process before its last 2-3 restart. Scenario is after this particular process crashes, a log file is generated and PID of the process is ...
1
vote
2answers
928 views

PID file for C program for monit [closed]

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
2answers
1k views

freebsd pid file not created

Pid files not created in /var/run folder. rc.d script: #!/bin/sh . /etc/rc.subr name=phpcgi rcvar=phpcgi_enable pidfile=/var/run/${name}.pid command=/usr/local/bin/php-cgi load_rc_config $name ...
3
votes
1answer
2k views

How to get the PID of a process started by /bin/su -c

I'm writing a init.d-script for an java-app. But the java-app should be run by another user. (The OS I'm using is Debian Squeeze.) I already got this: /bin/su - $USER - c "cd $PATH;echo $PASSWORD | ...
1
vote
2answers
479 views

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, ...