mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Added support for windows service
Added support for running as a windows service so it does not fork the process on reboot.
This commit is contained in:
parent
af77e51307
commit
b3fe6145e2
2 changed files with 13 additions and 4 deletions
|
@ -92,7 +92,9 @@ def main():
|
|||
'--nolaunch', action='store_true', help='Prevent browser from launching on startup')
|
||||
parser.add_argument(
|
||||
'--pidfile', help='Create a pid file (only relevant when running as a daemon)')
|
||||
|
||||
parser.add_argument(
|
||||
'--windowsservice', action='store_true', help='Running as a windows service.')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.verbose:
|
||||
|
@ -116,6 +118,10 @@ def main():
|
|||
plexpy.DAEMON = True
|
||||
plexpy.QUIET = True
|
||||
|
||||
if args.windowsservice:
|
||||
plexpy.WINDOWSSERVICE = True
|
||||
logger.info("Running as windows service: %s", plexpy.WINDOWSSERVICE)
|
||||
|
||||
if args.pidfile:
|
||||
plexpy.PIDFILE = str(args.pidfile)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue