Re: [Twisted-Python] How to restart Twisted service in-process

2017-03-02 Thread Роман Мещеряков
I decided to go easy way and use twistd with --pidfile="", it works :) Thank you Glyph! :) -- Kind regards, Roman Mescheryakov   02.03.2017, 00:11, "Glyph Lefkowitz" : On Mar 1, 2017, at 9:46 AM, Роман Мещеряков wrote: Then the next question is: how to run my .tac file

Re: [Twisted-Python] How to restart Twisted service in-process

2017-03-01 Thread Glyph Lefkowitz
> On Mar 1, 2017, at 9:46 AM, Роман Мещеряков > wrote: > > Then the next question is: how to run my .tac file with twist? I don't see > option like '-y' in it's --help output. We haven't implemented .tac files for `twist` yet; you can either add that feature :) or you can write a twist plugin

Re: [Twisted-Python] How to restart Twisted service in-process

2017-03-01 Thread Роман Мещеряков
Then the next question is: how to run my .tac file with twist? I don't see option like '-y' in it's --help output. -- Kind regards, Roman Mescheryakov   01.03.2017, 05:54, "Glyph Lefkowitz" : On Feb 28, 2017, at 8:11 AM, Роман Мещеряков wrote: Hello everyone,today I tr

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-28 Thread Glyph Lefkowitz
> On Feb 28, 2017, at 8:11 AM, Роман Мещеряков > wrote: > > Hello everyone, > today I tried restarting twisted service using sys.execv, and it fails with > the following message: > > > 2017-02-28T18:39:47+0300 [ready_to_setup#debug] Before os.execv: > > sys.executable is /usr/bin/python and

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-28 Thread Роман Мещеряков
Hello everyone,today I tried restarting twisted service using sys.execv, and it fails with the following message: > 2017-02-28T18:39:47+0300 [ready_to_setup#debug] Before os.execv: sys.executable is /usr/bin/python and sys.argv are ['/usr/local/bin/twistd', '-ny', 'master_player.tac']> Another twis

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-20 Thread Glyph Lefkowitz
> On Feb 20, 2017, at 00:58, Роман Мещеряков > wrote: > > > Hi everyone, > > The answers are below > > -- > Kind regards, Roman Mescheryakov > > > 19.02.2017, 02:21, "Jean-Paul Calderone" >: >> On Sat, Feb 18, 2017 at 2:25 PM, Glyph Lefkowitz >

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-20 Thread Роман Мещеряков
 Hi everyone, The answers are below -- Kind regards, Roman Mescheryakov  19.02.2017, 02:21, "Jean-Paul Calderone" :On Sat, Feb 18, 2017 at 2:25 PM, Glyph Lefkowitz wrote: On Feb 2, 2017, at 1:17 AM, Роман Мещеряков wrote: Hello everyone! I wro

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-18 Thread Jean-Paul Calderone
On Sat, Feb 18, 2017 at 6:32 PM, Glyph Lefkowitz wrote: > > On Feb 18, 2017, at 3:19 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > (If not, what do you do when your daemon simply *crashes*)? > > > > Twisted programs can crash!??! > The Linux OOM killer is pretty crazy, man.

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-18 Thread Glyph Lefkowitz
> On Feb 18, 2017, at 3:19 PM, Jean-Paul Calderone > wrote: > > (If not, what do you do when your daemon simply crashes)? Twisted programs can crash!??! -g___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cg

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-18 Thread Jean-Paul Calderone
On Sat, Feb 18, 2017 at 2:25 PM, Glyph Lefkowitz wrote: > > On Feb 2, 2017, at 1:17 AM, Роман Мещеряков > wrote: > > *Hello everyone! I wrote Twisted-based TCP server which is capable of > running in several relatively different modes. When mode switch is needed, > I would like the server to res

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-18 Thread Glyph Lefkowitz
> On Feb 2, 2017, at 1:17 AM, Роман Мещеряков > wrote: > > Hello everyone! I wrote Twisted-based TCP server which is capable of running > in several relatively different modes. When mode switch is needed, I would > like the server to restart itself by some means, for it to read new mode from

[Twisted-Python] How to restart Twisted service in-process

2017-02-02 Thread Роман Мещеряков
Hello everyone! I wrote Twisted-based TCP server which is capable of running in several relatively different modes. When mode switch is needed, I would like the server to restart itself by some means, for it to read new mode from configuration file and create corresponding implementation. Also I wa