javascript - killSignal option in JSON config file with Forever module [node.js] -
i'm using forever nodejs , want use config file (a json file) start server. want use option --killsignal=sigterm
, want in json file instead of using cli. possible? tried (according forever documentation )with:
{ "uid": "app", "append": true, "watch": false, "script": "app.js", "sourcedir": "/home/user/test/", "args": [" --killsignal=sigterm "], "logfile": "/home/user/test/log/foreverlog.log", "outfile": "/home/user/test/log/foreverlogout.log", "errfile": "/home/user/test/log/foreverlogerr.log" }
but "args"
line not work. tried putting last line in json file, or putting
"script" : " --killsignal=sigterm app.js"
and
"sourcedir": "--killsignal=sigterm /home/user/test/"
but none of these works.
am missing something?
for now, used workaround. created config file , start.sh file; .sh file contains
forever start --killsignal=sigterm ./config/foreverconfig.json
i created stop.sh file contains
forever stop app.js
this works correctly.
Comments
Post a Comment