2
在systemd上运行Ruby on Rails
操作系统:Centos 7 我正在尝试将Snorby作为systemd运行,但是脚本无法正确启动 在Snorby文件夹中时,我可以在命令行上将exec导轨服务器-e development -b 0.0.0.0捆绑在一起,没有任何问题,但是当我将其放在脚本中并使用systemctl执行时,它将无法正常工作。 [Service] WorkingDirectory=/tmp/snorby Environment=RAILS_ENV=development ExecStart=/usr/local/rbenv/shims/bundle exec rails server -d -b 0.0.0.0 状态输出 snorby.service - Snorby ConfiServ Loaded: loaded (/usr/lib/systemd/system/snorby.service; enabled; vendor preset: disabled) Active: inactive (dead) since Thu 2017-08-03 13:25:34 UTC; 1min 18s ago Process: 5533 ExecStart=/usr/local/rbenv/shims/bundle exec rails server -d -b 0.0.0.0 (code=exited, …