Hi,<div><br></div><div>I have been developing an application, which I would like to manage in a fashion similar to scripts placed in /etc/init.d. I.e. I want to start, stop, restart and monitor the application.</div><div><br>
</div><div>Currently, I am trying to figure out a correct approach for this. Initially I thought to create a wrapper shell script like here [1] and just copy it into `/etc/init.d` directory. Then in that script I would make `twistd` start the application.</div>
<div><br></div>However, today I discovered `twisted.runner` package,  which seems to do the same thing.  So my question is how to run and monitor processes using `twisted.runner`? I couldn&#39;t find any examples on how to use it.<div>
<br></div><div><div>Also, in 11th part of the tutorial [2] there is a mention that I can package my application as rpm package, which, when installed, will correctly register my package as `init.d` script.</div><div><br></div>
<div>So are there best practices in twisted about how to install twisted applications and manage them as `init.d` services?</div><div><br></div><div>I am quite new to Twisted (and to Linux `init.d` scripts). Sorry, if my question is unclear.</div>
<div><br></div><div>Thank you in advance.</div><div><br></div><div>[1] <a href="http://www.sensi.org/~alec/unix/redhat/sysvinit.html">http://www.sensi.org/~alec/unix/redhat/sysvinit.html</a></div><div><div>[2] <a href="http://twistedmatrix.com/documents/current/core/howto/tutorial/configuration.html#auto4">http://twistedmatrix.com/documents/current/core/howto/tutorial/configuration.html#auto4</a></div>
<div><br></div>-- <br>with regards,<br>Maxim<br>
</div></div>