Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a situation where I want to use a script during a build process which stops a process and starts it again after updating its files as a last step. The process is started via a build system which uses an own user account on the machine.

The script works fine when starting it manually but when the build system starts it, it will shut down after a few seconds.

Has anybody any idea why the process is shutting down?

P.S.: I am using nohup and & when starting the process. P.P.S: I tried to redirect the in- and output, but this didn't help...

share|improve this question
    
STOP you mean pause ? or terminate ? –  eicto Nov 9 '12 at 16:09
    
Does the build system's user have the permissions required for the resources used by the script? Have you considered adding logging to your script so you can see what's going on? –  Ƭᴇcʜιᴇ007 Nov 9 '12 at 16:22
    
It is terminated with "kill xy". The script has all the permissions needed, but I think I wasn't very clear in my problem description: The script itself is running succesfully. It starts another process which works, but after a few seconds this second process (not the script) is terminated... –  Asterix der Gallier Nov 12 '12 at 17:07

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.