2011-09-16 2 views

답변

3

프로세스 이름을 변경하는 것은 일반 Python에서 수행 할 수 없으며 pydaemon은 100 % Python입니다. 이를 수행하려면 py-setproctitle과 같은 C 레벨 라이브러리가 필요합니다. 그런 다음 기본 방법에 다음을 추가하기 만하면됩니다.

try: 
    import setproctitle 
    setproctitle.setproctitle('my-awesome-program') 
except: 
    pass # Ignore errors, since this is only cosmetic 
관련 문제