我试图在暴发户运行thin服务器。 这是我的upstart.conf文件包含的内容:
description 'kitfaye' start on runlevel [12356] stop on runlevel [!12356] respawn script exec su -l deploy -c "export RAILS_ENV=production && cd /home/deploy/kitfaye && thin start -e production -p 8003 -R config.ru" end script
在我重新启动我的ubuntu机器后,我可以看到htop 4 thin过程。 你可以看附件中的照片。 当然我不能连接到8003端口。 那里发生了什么?
https://drive.google.com/file/d/0B-jLZf9ippNgYzIwSFZzZUozamM/edit?usp=sharing

如果在htop中按F5,则会看到stream程层次结构,这有助于解释您在此处看到的内容。
他们可能是这样命令586 – > 677 – > 1077 – > 1082。
586 'su' - spawns 677 'export ...; cd ...; thin start ...' which spawns 1077 'thin start ...' which spawns 1082
如果你有一个相当新的版本的Upstart(我认为精确是好的),那么我会build议使用这个configuration,而不是:
description "kitfaye" start on runlevel [2345] stop on runlevel [016] setuid deploy chdir /home/deploy/kitfaye env RAILS_ENV=production exec thin start -e production -p 8003 -R config.ru"