Skip to main content

srvwrapper wraps any applications to run as Windows Service

Project description

srvwrapper

Create Windows service from executable

Install

Step 1:

Download and install the srvwrapper package for python.

pip install srvwrapper

Step 2:

Use the srvwrapper command and pass the service name and program path to create a service. Other optional commands are listed with the --help command.

usage: srvwrapper [-h] [--arguments ARGUMENTS] [--display DISPLAY]
                  [--description DESCRIPTION] [--start START] [--obj OBJ]
                  name program

Wrap any applications to run as Windows Service

positional arguments:
  name                  service name
  program               application path

optional arguments:
  -h, --help            show this help message and exit
  --arguments ARGUMENTS
                        arguments for program
  --display DISPLAY     the display name of the service
  --description DESCRIPTION
                        service description
  --start START         how the service starts
                        <boot|system|auto|demand|disabled|delayed-auto>
  --obj OBJ             the account used to run the service
                        (default=LocalSystem)

When using --arguments, make sure you added two double quotes around it. For example

--arguments "\"test.py log.txt\""

Uninstall

Use Windows sc command.

sc delete ServiceName

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

srvwrapper-1.1-py2.py3-none-win_amd64.whl (11.2 kB view hashes)

Uploaded Python 2 Python 3 Windows x86-64

srvwrapper-1.1-py2.py3-none-win32.whl (11.2 kB view hashes)

Uploaded Python 2 Python 3 Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page