diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..05b6ab2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +setproctitle==1.1.8 +sh==1.09 +toml==0.8.2 +wsgiref==0.1.2 diff --git a/tunasync/jobs.py b/tunasync/jobs.py index 74bc283..254de24 100644 --- a/tunasync/jobs.py +++ b/tunasync/jobs.py @@ -2,12 +2,14 @@ # -*- coding:utf-8 -*- import sh import sys +from setproctitle import setproctitle import signal import Queue def run_job(sema, child_q, manager_q, provider): aquired = False + setproctitle("tunasync-{}".format(provider.name)) def before_quit(*args): provider.terminate()