当我pip freeze时,我看不到Gunicorn。当我运行Gunicorn时,我想知道service gunicorn restart/stop是从哪里来的。service的S和Upstart的关系是什么?
谢谢。
我现在了解到,在service gunicorn restart中,gunicorn只是我在/etc/init/中放置的脚本的名称(sans的.conf扩展)。service是一个命令,它在/etc/init.d中搜索System脚本,在/etc/init中搜索Upstart脚本。
有人能帮我看看这张桌子有什么问题吗?
|------------------+-------------+-----------+---------------------------------|
| | 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 |
|------------------+-------------+-----------+---------------------------------|发布于 2015-11-16 03:20:56
现在,system d是Ubuntu中的init系统,表看起来更像:
+------------------+---------------+-------------------+---------------------------+-----------------------------------+
| | 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. | |
+------------------+---------------+-------------------+---------------------------+-----------------------------------+https://askubuntu.com/questions/697822
复制相似问题