Skip to content

Wrapper to run python scripts like a daemon process or service

Notifications You must be signed in to change notification settings

nguyensinhtu/pyservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Wrapper to run python scripts like a daemon process or service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages