forever -p /var/run/forever is ignored

陌路散爱 提交于 2019-12-11 02:02:15

问题


I'm trying to use the -p option to define where pid files are kept when starting forever with sudo. However, the pid files always show up in /home/user/.forever instead of /var/run/forever

edit: fyi I've switched to nodemon in dev and pm2 in production.


回答1:


My workaround was using the environment variable since -p didn't work for me either in my init.d script.

export FOREVER_ROOT=/var/run/forever

Hope this help you a bit until they release a version with a fix.

Was kinda mind puzzling since I tried to run forever with a forever system user without a home directory.



来源:https://stackoverflow.com/questions/21393040/forever-p-var-run-forever-is-ignored

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!