var fs = require('fs');

module.exports = function(keystone, app, callback) {

	var unixSocket = keystone.get('unix socket');
	var message = keystone.get('name') + ' is ready on ' + unixSocket;

	function ready (err) {
		callback(err, message);
	}

	fs.unlink(unixSocket, function(err) {
		if (err) return callback(err);
		keystone.httpServer = app.listen(unixSocket, ready);
		fs.chmod(unixSocket, 0x777);
	});
	
};

@@ -1,12 +1,227 @@
+/**%0A * Configures and starts express server.%0A *%0A * Events are fired during initialisation to allow customisation, including:%0A *   - onSocketServerCreated%0A *%0A * consumed by lib/core/start.js%0A *%0A * @api private%0A */%0A %0A
 var fs = req
@@ -502,38 +502,66 @@
 %7B%0A%09%09
-if (err) return callback(err);
+// we expect err if the file is new so continue either way
 %0A%09%09k

remove error check unlink