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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -