"TCP port the server will bind")
EMPCFBOTH("keep_journal", keep_journal, int, NSC_INT, KM_INTERNAL,
"Enable journal log file")
+EMPCFBOTH("post_crash_dump_hook", post_crash_dump_hook, char *, NSC_STRING, KM_INTERNAL,
+ "Shell command run right after a crash dump, in the game's data directory")
EMPCFBOTH("privname", privname, char *, NSC_STRING, 0,
"Name of the deity")
EMPCFBOTH("privlog", privlog, char *, NSC_STRING, 0,
void update_init(void);
int update_trigger(void);
int update_reschedule(void);
+int run_hook(char *, char *);
int shutdown_initiate(int);
/* thread entry points */
/* Divine hosts and networks */
char *privip = "127.0.0.1 ::1 ::ffff:127.0.0.1";
+char *post_crash_dump_hook = "";
+
char *disabled_commands = "";
int keep_journal = 0; /* journal log file enabled */
return;
}
}
+ run_hook(post_crash_dump_hook, "post-crash-dump");
logerror("Crash dump complete");
#endif
}
static int update_get_schedule(void);
static void update_sched(void *);
static void update_run(void);
-static int run_hook(char *cmd, char *name);
void
update_init(void)
empth_rwlock_unlock(play_lock);
}
-static int
+int
run_hook(char *cmd, char *name)
{
int status;