Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.054 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'converted': 0.09; 'executable': 0.09; 'python': 0.11; 'windows': 0.15; 'received:dip0.t-ipconnect.de': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:windows': 0.16; 'tcp': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'all,': 0.19; 'seems': 0.21; 'script': 0.25; '+0200': 0.26; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'comments': 0.31; 'sep': 0.31; 'run': 0.32; 'but': 0.35; 'add': 0.35; 'subject:service': 0.36; 'doing': 0.36; "didn't": 0.36; 'charset :us-ascii': 0.36; 'hi,': 0.36; 'list.': 0.37; 'server': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'easy': 0.60; 'manually': 0.60; 'developed': 0.63; 'services': 0.66; 'sample': 0.67; 'received:109': 0.72; 'received:(helo localhost)': 0.91 Date: Tue, 23 Sep 2014 20:53:48 +0200 From: Johannes Findeisen To: python-list@python.org Subject: Re: tcp server as windows service In-Reply-To: <005a01cfd736$34346ad0$9c9d4070$@traxens.com> References: <005a01cfd736$34346ad0$9c9d4070$@traxens.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411498834 news.xs4all.nl 2902 [2001:888:2000:d::a6]:32777 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78240 Hi, On Tue, 23 Sep 2014 15:56:41 +0200 Arulnambi Nandagoban wrote: > Hello all, > > > > I developed a multithreaded tcp server with python and I converted into a > windows executable using pyinstaller. > > I would like to run the server as a windows service so that server restarts > whenever pc restarts without > > doing it manually . Help me out with some sample code . Take a look at this post: https://stackoverflow.com/questions/32404/is-it-possible-to-run-a-python-script-as-a-service-in-windows-if-possible-how Read the comments below the solution to add your script to the Windows services list. I didn't do windows development but it seems very easy to do. Regards, Johannes