37 static const char *module_str =
"signconf_cmd";
41 char cmd[SYSTEM_MAXLEN];
43 ods_log_info(
"[%s] performing signconf for all zones", module_str);
46 ods_log_info(
"[%s] signconf done, no change", module_str);
54 ods_log_info(
"[%s] signconf done, notifying signer", module_str);
56 if (snprintf(cmd,
sizeof(cmd),
"%s --all", SIGNER_CLI_UPDATE) >= (
int)
sizeof(cmd)
59 ods_log_error(
"[%s] unable to notify signer of signconf changes!", module_str);
75 return task_create(what_id, time_now(), who, what, (
void*)dbconn, NULL);
#define SIGNCONF_EXPORT_OK
void ods_log_info(const char *format,...)
int perform_signconf(int sockfd, const db_connection_t *dbconn, int force)
void ods_log_error(const char *format,...)
enum task_id_enum task_id
void task_cleanup(task_type *task)
task_type * signconf_task(const db_connection_t *dbconn, const char *what, const char *who)
#define SIGNCONF_EXPORT_NO_CHANGE
int signconf_export_all(int sockfd, const db_connection_t *connection, int force)
task_id task_register(const char *short_name, const char *long_name, how_type how)
task_type * task_create(task_id what_id, time_t when, const char *who, const char *what, void *context, how_type clean_context)