<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>On Oct 7, 2012, at 5:13 PM, Stephan &lt;<a href="mailto:schenette@gmail.com">schenette@gmail.com</a>&gt; wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite">hey&nbsp;Jean-Paul,<div><br></div><div>I'm using twistd - if you see the daemon code it's in there to start and manage the service.<br><br>For some reason the OC Daemon pastebin linkted didn't work but this one does:<br>
<br>OC Daemon that starts the OC Service<br><a href="http://pastebin.com/g0UE7An8">http://pastebin.com/g0UE7An8</a><br><br>still know don't know what to change to get the service to run and detach from the parent process. Any help is appreciated.<br>
<br>Stephan<br></div></blockquote><div><br></div><div><div>The fact that "ocapi.py" is in "/usr/sbin" suggests that it's designed to be run as a script and not as a twistd plugin. &nbsp;The shell script that you're citing is mostly irrelevant - that's just a wrapper to get twistd to run on your platform.</div><div><br></div><div>And, indeed, when I look at ocapi.py, I can see it has a 'reactor.run()' at the bottom of it, which means it's trying to run itself, not be run by twistd. &nbsp;That's not how a file passed to '--python' is supposed to work.</div><div><br></div><div>Are you the maintainer of ocapi.py? If not, you'll have to get them to make some changes.</div><div><br></div><div>-glyph</div><div><br></div></div></div></body></html>