Skip to content

Files

Latest commit

e53f250 · Dec 29, 2019

History

History
28 lines (24 loc) · 483 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 483 Bytes

wrapper để run python services

ex:

from pyservice import app

@app.main(app_name='some_app_name')
def main_app():
    #some code
    pass

if __name__=='__main__':
    main_app()

Installation

pip install git+https://github.com/nguyensinhtu/pyservice.git#egg=pyservice

Usage

python your_service.py start | restart | stop | status 

NOTE:

Để start được service bạn cần set APP_TMP

export APP_TMP=/your_path/tmp/