Python Daemon Packaging Best Practices

后端 未结 10 1441
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 09:48

I have a tool which I have written in python and generally should be run as a daemon. What are the best practices for packaging this tool for distribution, particularly how sho

10条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 09:54

    On Linux systems, the system's package manager (Portage for Gentoo, Aptitude for Ubuntu/Debian, yum for Fedora, etc.) usually takes care of installing the program including placing init scripts in the right places. If you want to distribute your program for Linux, you might want to look into bundling it up into the proper format for various distributions' package managers.

    This advice is obviously irrelevant on systems which don't have package managers (Windows, and Mac I think).

提交回复
热议问题