Questions tagged [pid]
Process Identifier (PID)
9
questions
14
votes
3
answers
31k
views
Systemd drop-in fails to create PID file
I have a drop-in for systemd-machined at the path /etc/systemd/system/systemd-machined.service.d/10-machined-pid-file.conf. when I run systemctl status systemd-machined I do see the lines
Drop-In: /...
123
votes
8
answers
277k
views
How to get pid of just started process
I want to start process (eg. myCommand) and get its pid (to allow to kill it later).
I tried ps and filter by name, but I can not distinguish process by names
myCommand
ps ux | awk '/<myCommand&...
17
votes
10
answers
96k
views
Port 80 is being used by SYSTEM (PID 4), what is that?
I am trying to use port 80 for my application server, but when I perform "netstat -aon" I get
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
When I look up the process in ...
29
votes
4
answers
34k
views
Directory in /var/run gets deleted after hard reboot
I keep my sphinx pid in /var/run/sphinx/searchd.pid but every time I hard reboot the directory /var/run/sphinx disappears and sphinx fails to start. Is there a way to make that directory stick or ...
19
votes
2
answers
111k
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 ...
12
votes
3
answers
16k
views
Can start-stop-daemon use environmental variables?
I need to daemonize a Windows app running in Wine, and create a pid in /var/run. Since it requires an X11 session to run, I need to make sure the $DISPLAY variable is set in the running user's ...
2
votes
3
answers
21k
views
sshd running but no PID file
I'm recently started using monit to monitor the status of sshd on my CentOS 5.4 server. This works fine, but every so often monit reports that sshd is no longer running. This isn't true - I am still ...
2
votes
2
answers
1k
views
How can I enable pid and ppid fields in psacct dump-acct?
I am currently using the psacct package on Centos to perform accounting on processes run by users.
The info file1 suggests that it is possible to output pid and ppid depending on what information ...
1
vote
1
answer
21k
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 /...