#!/usr/bin/env node
var config = require('../config'),
    opts = require('./opts'),
    path = require('path');

opts.parse_args();
opts.load_defaults();
var lock = config.PID_FILE;

require('fs').readFile(lock, function (err, pid) {
	pid = parseInt(pid, 10);
	if (err || !pid)
		return console.warn('No pid.');
	require('child_process').exec('kill -HUP ' + pid,
				function (err) {
		if (err) throw err;
		if (process.argv.indexOf('--silent') < 2)
			console.log('Sent HUP.');
	});
});

#!/usr/bin/env node
var config = require('../config'),
    opts = require('./opts'),
    path = require('path');

opts.parse_args();
var lock = config.PID_FILE;

require('fs').readFile(lock, function (err, pid) {
	pid = parseInt(pid, 10);
	if (err || !pid)
		return console.warn('No pid.');
	require('child_process').exec('kill -HUP ' + pid,
				function (err) {
		if (err) throw err;
		if (process.argv.indexOf('--silent') < 2)
			console.log('Sent HUP.');
	});
});

Remove legacy function call