Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When issuing the following command:

 ps -ef | grep queue

I get a list of 5 processes running.

root   10001    1   0   2012  pts/5   02:22:04 /usr/local/perl/bin/perl  /usr/local/cpi/sss/enroll_req - L
root   10003    1   0   2012  pts/5  00:12:44  /usr/local/perl/bin/perl  /usr/local/cpi/sss/job_req -L

My question is this. If I issue a

kill 10001

How would I restart the enroll_req process?

share|improve this question
up vote 0 down vote accepted

This depends on how the process was started in the first place. In the easiest case, it might be enough to just use the command line you see in the ps output:

/usr/local/perl/bin/perl /usr/local/cpi/sss/enroll_req - L

but if this process was spawned, e.g. from some master process doing some initialization, you could run into trouble.

Why do you want to do this in the first place?

share|improve this answer
because I've got a perl script which had some changes, I was told the only way to commit those changes once pushed to production was to kill and start the process. Thanks Sven...not sure why I got voted down 2 votes. – Vibration Of Life Jan 8 '13 at 16:43
fyi, thanks Sven. What you mentioned worked. I had to append a ampersand to the command in order to get the process to run in the background. thanks – Vibration Of Life Jan 14 '13 at 13:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.