# HG changeset patch # User Michael Schloh von Bennewitz # Date 1407956460 -7200 # Node ID 3de96d11e41721f420ff3c21c2ebedcd511bf7d0 # Parent 42e83b3431d98cabb18107f3ecaaedc5a8c1e110 Write logs and output to temp until a configuration variable exists. diff -r 42e83b3431d9 -r 3de96d11e417 src/fork.js --- a/src/fork.js Wed Aug 13 21:00:15 2014 +0200 +++ b/src/fork.js Wed Aug 13 21:01:00 2014 +0200 @@ -47,10 +47,10 @@ var childproc = new (forkserv.Monitor)('app.js', { max: 4, silent: true, - pidFile: 'mdnsgw.pid', - logFile: 'mdnsgw.log', - outFile: 'mdnsgw.out', - errFile: 'mdnsgw.err', + pidFile: '/tmp/mdnsgw.pid', + logFile: '/tmp/mdnsgw.log', + outFile: '/tmp/mdnsgw.out', + errFile: '/tmp/mdnsgw.err', options: [] }); @@ -60,3 +60,7 @@ // fork a child childproc.start(); + +//// daemonize by exit +//that doesn't work +//process.exit(0);