static int doPowerDown(struct nc_state_t *nc, ncMetadata * pMeta)
{
    char cmd[MAX_PATH] = { 0 };
    int rc = 0;

    snprintf(cmd, MAX_PATH, "%s /usr/sbin/powernap-now", nc->rootwrap_cmd_path);
    LOGDEBUG("saving power: %s\n", cmd);
    rc = system(cmd);
    rc = rc >> 8;
    if (rc)
        LOGERROR("cmd failed: %d\n", rc);

    return EUCA_OK;
}
static int doPowerDown(struct nc_state_t *nc, ncMetadata * pMeta)
{
    char cmd[MAX_PATH] = { 0 };
    int rc = 0;

    snprintf(cmd, MAX_PATH, "%s /usr/sbin/powernap-now", nc->rootwrap_cmd_path);
    LOGDEBUG("saving power: %s\n", cmd);
    rc = system(cmd);
    rc = rc >> 8;
    if (rc)
        LOGERROR("cmd failed: %d\n", rc);

    return EUCA_OK;
}