~ubuntu-branches/ubuntu/utopic/pacemaker/utopic-proposed

« back to all changes in this revision

Viewing changes to tools/ipmiservicelogd.c

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-08-15 11:27:07 UTC
  • mfrom: (1.1.12) (2.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20130815112707-5r864ink7jme3zl5
Tags: 1.1.10+git20130802-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/control: Build-Depends on libqb-dev; Depends on libheartbeat2.
* Corosync's pacemaker plugin is disabled, hence not built:
  - debian/licrmcluster4-dev.install: Do not install plugin.h.
  - debian/pacemaker.install: Do not install pacemaker.lcrso.

Show diffs side-by-side

added added

removed removed

Lines of Context:
511
511
        rv = ipmi_entity_add_sensor_update_handler(entity, sensor_change, entity);
512
512
        if (rv) {
513
513
            crm_err("ipmi_entity_set_sensor_update_handler: 0x%x", rv);
514
 
            crm_exit(1);
 
514
            crm_exit(pcmk_err_generic);
515
515
        }
516
516
    }
517
517
}
548
548
    os_hnd = ipmi_posix_setup_os_handler();
549
549
    if (!os_hnd) {
550
550
        crm_err("ipmi_smi_setup_con: Unable to allocate os handler");
551
 
        crm_exit(1);
 
551
        crm_exit(pcmk_err_generic);
552
552
    }
553
553
 
554
554
    /* Initialize the OpenIPMI library. */
559
559
    if (rv) {
560
560
        crm_err("Error parsing command arguments, argument %d: %s", curr_arg, strerror(rv));
561
561
        usage(argv[0]);
562
 
        crm_exit(1);
 
562
        crm_exit(pcmk_err_generic);
563
563
    }
564
564
#endif
565
565
 
572
572
    if (rv) {
573
573
        crm_err("ipmi_ip_setup_con: %s", strerror(rv));
574
574
        crm_err("Error: Is IPMI configured correctly?");
575
 
        crm_exit(1);
 
575
        crm_exit(pcmk_err_generic);
576
576
    }
577
577
#else
578
578
    /* If all you need is an SMI connection, this is all the code you
587
587
    if (rv) {
588
588
        crm_err("ipmi_smi_setup_con: %s", strerror(rv));
589
589
        crm_err("Error: Is IPMI configured correctly?");
590
 
        crm_exit(1);
 
590
        crm_exit(pcmk_err_generic);
591
591
    }
592
592
#endif
593
593
 
594
594
    rv = ipmi_open_domain("", &con, 1, setup_done, NULL, NULL, NULL, NULL, 0, NULL);
595
595
    if (rv) {
596
596
        crm_err("ipmi_init_domain: %s", strerror(rv));
597
 
        crm_exit(1);
 
597
        crm_exit(pcmk_err_generic);
598
598
    }
599
599
 
600
600
    /* This is the main loop of the event-driven program.