MCPcopy
hub / github.com/foreversd/forever / tryStart

Function tryStart

lib/forever/cli.js:144–164  ·  view source on GitHub ↗
(file, options, callback)

Source from the content-addressed store, hash-verified

142// then stats the appropriate files and responds.
143//
144function tryStart(file, options, callback) {
145 var fullLog, fullScript;
146
147 if (options.path) {
148 forever.config.set('root', options.path);
149 forever.root = options.path;
150 }
151
152 fullLog = forever.logFilePath(options.logFile, options.uid);
153 fullScript = path.join(options.sourceDir, file);
154
155 forever.stat(fullLog, fullScript, options.append, function (err) {
156 if (err) {
157 forever.log.error('Cannot start forever');
158 forever.log.error(err.message);
159 process.exit(-1);
160 }
161
162 callback();
163 });
164}
165
166//
167// ### @private function updateConfig (updater)

Callers 1

cli.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected