-2

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?

1 Answer 1

0

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?

2
  • 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. Jan 8, 2013 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 Jan 14, 2013 at 13:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .