“service gunicorn restart”中的 Gunicorn 来自哪里?

“service gunicorn restart”中的 Gunicorn 来自哪里?

当我pip freeze,我看不到 Gunicorn。我在想当Gunicorn我跑的时候,它从哪里来service gunicorn restart/stop。它service和什么有关Upstart

谢谢。

编辑:

我现在明白,在 中service gunicorn restart,只是我放置在 中的gunicorn脚本的名称(不带扩展名) 。是在 中搜索 System-V 脚本和 在 中的 Upstart 脚本的命令。.conf/etc/init/service/etc/init.d/etc/init

有人能帮忙看看这个表是否有问题吗?

|------------------+-------------+-----------+---------------------------------|
|                  |          service        |             on a Mac            |
|------------------+-------------+-----------+---------------------------------|
| actual manager   | ?           | init(8)   | launchd                         |
| interface        | ?           | initctl   | launchctl                       |
| name             | System-V    | Upstart   |                                 |
| Script locations | /etc/init.d | /etc/init | ~/Library/LaunchAgents and more |
|------------------+-------------+-----------+---------------------------------|

答案1

现在 systemd 是 Ubuntu 中的初始化系统,该表看起来更像这样:

+------------------+---------------+-------------------+---------------------------+-----------------------------------+
|                  |                      service                                  |             on a Mac              |
+------------------+---------------+-------------------+---------------------------+-----------------------------------+
| actual manager   | none          | init(8)           | systemd(1)                | launchd                           |
| interface        | /etc/init.d/* | initctl           | systemctl                 | launchctl                         |
| name             | System-V      | Upstart           | systemd                   | launchd                           |
| Script locations | /etc/init.d   | /etc/init         | /etc/systemd              | ~/Library/LaunchAgents and more   |
|                  |               | ~/.config/upstart | /lib/systemd/system, etc. |                                   |
+------------------+---------------+-------------------+---------------------------+-----------------------------------+

相关内容