Example #1
0
exports.remove = function(cb) {
  satan.ensure_destroyed(daemon_opts.key, function(err) {
    if (err || !is_windows) return cb(err);

    fs.unlink(service_run_path, function(err) {
      // if (err) return cb(err);

      cb(); // don't mind if it wasn't there.
    });
  });
}
Example #2
0
exports.remove_watcher = function(cb) {
  satan.ensure_destroyed(watcher_opts.key, function(err) {
    return cb && cb(err);
  });
}