On 5/22/07, Ian Bicking <[EMAIL PROTECTED]> wrote: > I should probably just take the whole #! thing out, it's really finicky > and platform-dependent. Linux and BSD are totally different, for > instance, and BSD and OSX are also different from each other, I think. > I like the pattern, it just shouldn't use "paster", it should use a > completely different script dedicated to this purpose.
So how do I do it without the shbang? Is "paster serve production.ini start" supposed to work (and get the options from the config file), or do I have to do "paster serve --daemon --log-file=FOO --pid-file=BAR --restart-monitor production.ini"? I don't mind writing a separate init.d script; it provides a nice place to put other server-specific stuff that may crop up. > > My other question is, paster has a --monitor-restart option to restart > > the server if it dies. But the Pylons Cookbook has recipes for > > daemontools and supervisor2. Are these better than paster's monitor > > for some reason, or are they all interchangeable? > > They all work the same basic way. paster's is simpler, obviously, since > it's just one option. But it hasn't been tested a whole lot, so I > dunno. Also it probably has more overhead than daemontools, though I > don't know if it really is significant. I have a few weeks to beta test the application, so I can try it out. I'd also rather use something built into Paste than installing another third-party application that overlaps with it. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
