onSigTerm = function (){
      Process.killChildProcess({ childProcess: childProcess, force: true }).exec(function (_forceKillErr){
        if (_forceKillErr) {
          console.error('There was a problem terminating this script:\n'+_forceKillErr.stack+'\nHere are some details which might be helpful:\n' + _forceKillErr.stack);
        }
      });
    }
`sails run`

Run a script for the Sails app in the current working directory.

This matches either a JavaScript file in the `scripts/` directory, or one of the command-line scripts
declared within the `scripts: {}` dictionary in the package.json file.

@see https://sailsjs.com/documentation/reference/command-line-interface/sails-run