<div class="gmail_quote">On Fri, May 4, 2012 at 7:00 PM, Parnell Springmeyer <span dir="ltr"><<a href="mailto:ixmatus@gmail.com" target="_blank">ixmatus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have an OTP application and a release generated. Now, the problem I'm<br>
having is capturing the operating system level PID that it is assigned<br>
on startup.<br>
<br>
Using pgrep isn't very useful because the process is listed as<br>
"[beam.smp]" and there are more than one OTP applications running on<br>
this system!</blockquote><div><br></div><div>Well, there's os:getpid/0, you could write a pid file with that... or you could run the process it in the foreground and manage the process with something like daemontools, launchd, etc.</div>
<div><br></div><div>-bob</div><div><br></div></div>