Ok - so it appears I am doing something dumb then? ;) That does not suprise me...
Can you suggest a better way of doing this to avoid problems down the line. I think the simplest way of putting my problem is that I want to be able to track the PID of a Perl script so I can restart it at set...
Hi,
Thanks for the tips - I will try these when I get to work in the morning.
I'm running on RedHat so the init.d become a service for me.
The reason I need to restart a service is simple - another service is logging and when it restarts the perl script 'looses' the log file it is following -...
Hi,
I am trying to run a perl script as an init.d process (So I can auto-restart/kill etc) but am having problems.
Firstly, it seems to not want to include the normal perl modules and fails - runs just fine if I call the script manually?
Secondly, I am not sure if the pid will write correctly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.