mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
fix expire bug, cleanup tasks
This commit is contained in:
parent
12b0f37da5
commit
daa994ba32
3 changed files with 59 additions and 62 deletions
|
|
@ -7,16 +7,6 @@ from proxstar.util import *
|
|||
from flask import current_app as app
|
||||
|
||||
|
||||
def start_websockify(websockify_path, target_file):
|
||||
result = subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE)
|
||||
if not result.stdout:
|
||||
subprocess.call([
|
||||
websockify_path, '8081', '--token-plugin', 'TokenFile',
|
||||
'--token-source', target_file, '-D'
|
||||
],
|
||||
stdout=subprocess.PIPE)
|
||||
|
||||
|
||||
def stop_websockify():
|
||||
result = subprocess.run(['pgrep', 'websockify'], stdout=subprocess.PIPE)
|
||||
if result.stdout:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue