Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78240

Re: tcp server as windows service

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 <mailman@hanez.org>
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 <mailman@hanez.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14283.1411498834.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: tcp server as windows service Johannes Findeisen <mailman@hanez.org> - 2014-09-23 20:53 +0200

csiph-web