[Twisted-Python] automating startup of twistd application.
bob at redivi.com
Fri Jan 2 19:17:22 EST 2004
On Jan 2, 2004, at 6:00 PM, Syver Enstad wrote:
> Jp Calderone <exarkun at intarweb.us> writes:
>> On Fri, Jan 02, 2004 at 12:55:12PM +0100, Syver Enstad wrote:
>>> Because I want to do some automatic maintenace tasks I need to be
>>> able to start and stop the daemon from a script. Unfortunately I
>>> have little knowledge of Linux and the twistd daemon/application and
>>> need some input on how to attack this problem.
> Yes, thanks. The security aspects of it is certainly interesting and
> important. Where should I look to find out how to automate startup of
> the twistd daemon so that it doesn't prompt for the root password?
Typically the way that one does this is to start a daemon as root via
one of the following "startup phase" options: crontab (a @reboot
directive), an init.d (sometimes called rc.d or rc) script, a
"StartupItem bundle" on OS X, etc. These don't need the root password
to run once installed because they are executed as root during the
normal startup phase of the computer.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2357 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040102/96fc1408/attachment.bin
More information about the Twisted-Python