0

I have a simple upstart script that exec my daemon. When doing so, the correct pid is returned by upstart, but my daemon is not able to create the actual pid file.

script 
    VM=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2 }')
    ulimit -v $VM
    ulimit -c unlimited
    exec $DAEMON
end script

If I execute $DAEMON from the command line, then everything forks and the pid file is created as expected.

0

If you are using Ubuntu Raring/Saucy or Debian sid, you can easily install procenv to for full environmental details (as shown in the links above).

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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