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
Close
Hashes for srvwrapper-1.1-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb569bbca1bba9f23d6059f77393cdbbd829adba2502c11093ab978be73a557 |
|
MD5 | 9f479b9b5221ab179bb60372632a2a7f |
|
BLAKE2b-256 | 6f61f70b0c6d108c5da3e04ec53a1aa670595607c7f51b49e1e4fa97a90bc8ca |
Close
Hashes for srvwrapper-1.1-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87cef6e2c606febe50b7742ac1069d2ad60cc8e9395f0cafe184953eb8836b0e |
|
MD5 | 6ac7b33c7c89ab4bc041d36fa57b7414 |
|
BLAKE2b-256 | 0b198ca7f05b8b67d10f3ebde1aa1c51ba5189214aeec664cc45d61ad98f1469 |