<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
I don't recall that I observed a way to tell spread to leave it's own
pid file.<br>
<br>
In your startup script, test the return code of spread to be sure it
started successfully and then use `pidof` to get the pid and write it
out to the file you want to.  Don't forget to clean it up on stop.<br>
<br>
I see your note about return code in perl.  I don't know that I've seen
it fail to start so maybe there is an issue that it always returns 0.<br>
<br>
Davek<br>
<br>
Michael Peters wrote:
<blockquote cite="mid:488A3D24.9050406@plusthree.com" type="cite">Howdy,
  <br>
  <br>
I'm trying to incorporate spread into an existing project. This project
needs to control when spread starts and stops (it does similar things
with apache). This is pretty easy to do if I have a .pid file. I just
tell spread where to put it and then I can use it.
  <br>
  <br>
The problem is that my spread isn't leaving a pid file anywhere. I've
even configured it --with-pid-dir but no luck.
  <br>
  <br>
Another problem I'm having is that when I try to start the spread
server (in Perl using the system() function) it always returns 0 as the
exit status even if it couldn't start.
  <br>
  <br>
I'm doing this all on Linux (Fedora6) with spread 3.17.4. Any thoughts
or ideas about what I'm missing?
  <br>
  <br>
Thanks,
  <br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<!--
<div style="font-family:sans-serif;font-size:medium">
-->
<div style="width: 100%; clear: both;">
<hr style="margin: 7px 50px 7px 7px; height: 3px;">
<div
 style="margin-left: 15px; margin-right: 20%; position: relative; float: left;"><font
 color="#0000ff">Dave Koberstein</font>
<br>
Director of Software Applications
<br>
Mojix, Inc.
</div>
<div style="margin-left: 15px; position: relative; float: left;">
<div style="position: relative; float: left; font-style: italic;">email:<br>
phone:<br>
web:
</div>
<div style="margin-left: 15px; position: relative; float: left;">
<a class="moz-txt-link-abbreviated" href="mailto:davek@mojix.com">davek@mojix.com</a><br>
+1-650-575-3853<br>
<a class="moz-txt-link-abbreviated" href="http://www.mojix.com">www.mojix.com</a>
</div>
</div>
</div>
<br>
</div>
</body>
</html>