我正在尝试为我的应用程序开始精简,但随后pid
无法生成:
$ thin -C /var/www/project_path/current/config/myproject.testing.yml start
现在我无法阻止它,因为没有 pid:
$ thin -C /var/www/project_path/current/config/myproject.testing.yml stop
/home/usr/.rvm/gems/ruby-1.9.2-p180@api/gems/thin-1.5.1/lib/thin/daemonizing.rb:131:in `send_signal': Can't stop process, no PID found in tmp/pids/thin.pid (Thin::PidFileNotFound)
这是yml
文件:
pid: /home/usr/htdocs/testing/myproject/shared/pids/thin.pid
rackup: config.ru
log: /home/usr/htdocs/testing/myproject/shared/log/thin.log
timeout: 30
port: 1234
max_conns: 1024
chdir: /home/usr/htdocs/testing/myproject/current
max_persistent_conns: 128
environment: testing
address: 127.0.0.1
require: []
daemonize: true
更新:
现在我可以启动服务器,但在某些seconds
进程自动消失后;意味着我看不到pid
几秒钟后启动服务器所生成的内容。