ϪfddlZddlZddlmZddlmZmZmZddlm Z GddejZ GddejZ y) N) copyright)appinternetservice)logc eZdZdZgdgZdZy) ServerOptionszUsage: twistd [options])nodaemonnz(for backwards compatibility).ctdtj|jttj|jt j y)z5 Print version information and exit. z$twistd (the Twisted Windows runner) )fileN)printrversionstdoutsysexitselfs 9/usr/lib/python3/dist-packages/twisted/scripts/_twistw.py opt_versionzServerOptions.opt_versionsC 293D3D2E F  i!! 4  N)__name__ __module__ __qualname__synopsisoptFlagsrrrr r s(H <H rr ceZdZdZdZdZy)WindowsApplicationRunnerzn An ApplicationRunner which avoids unix-specific things. No forking, no PID files, no privileges. ctj|_tj|_t j |jdy)z4 Do pre-application-creation setup. rundirN)rr oldstdoutstderr oldstderroschdirconfigrs rpreApplicationz'WindowsApplicationRunner.preApplication's/ X&'rctj|jjt j |j|j d t j tjddd|jd|j|jtjdy)z< Start the application and run the reactor. no_saveg?cy)Nrrrrz:WindowsApplicationRunner.postApplication..5srrNzServer Shut Down.)rIService applicationprivilegedStartServicerstartApplicationr'r TimerService startReactorr"r$rmsgrs rpostApplicationz(WindowsApplicationRunner.postApplication/s ))*AAC T--4;;y3I/IJ X223 EqI $? #$rN)rrr__doc__r(r4rrrrr!s (%rr) r%rtwistedrtwisted.applicationrrrtwisted.pythonrr ApplicationRunnerrrrrr:s=  66C%%&%s44%r