Subversion Repositories public

Rev

Rev 71 | Rev 75 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 73
Line 311... Line 311...
311
  IncronCfg::GetValue("lockfile_name", lckfile);
311
  IncronCfg::GetValue("lockfile_name", lckfile);
312
  AppInstance app(lckfile, lckdir);
312
  AppInstance app(lckfile, lckdir);
313
 
313
 
314
  if (AppArgs::ExistsOption("kill")) {
314
  if (AppArgs::ExistsOption("kill")) {
315
    fprintf(stderr, "attempting to terminate a running instance of incrond...\n");
315
    fprintf(stderr, "attempting to terminate a running instance of incrond...\n");
316
    if (app.SendSignal(SIGTERM)) {
316
    if (app.Terminate()) {
317
      fprintf(stderr, "instance(s) notified, going down\n");
317
      fprintf(stderr, "instance(s) notified, going down\n");
318
      return 0;
318
      return 0;
319
    }
319
    }
320
    else {
320
    else {
321
      fprintf(stderr, "error - incrond probably not running\n");
321
      fprintf(stderr, "error - incrond probably not running\n");