X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Funit.h;fp=src%2Fcore%2Funit.h;h=bbad546356c6114c08a2e2df4933c5b08d273661;hb=f189ab18de69d3dee81117d7925fb370cd038f0f;hp=43ab4d1045de148a8e86949cb8d99476326b6e75;hpb=fa1b91632c5220e6589007af4cd573ca909f915a;p=elogind.git diff --git a/src/core/unit.h b/src/core/unit.h index 43ab4d104..bbad54635 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -41,6 +41,7 @@ typedef struct UnitStatusMessageFormats UnitStatusMessageFormats; #include "condition.h" #include "install.h" #include "unit-name.h" +#include "failure-action.h" enum UnitActiveState { UNIT_ACTIVE, @@ -112,7 +113,10 @@ struct Unit { /* JOB_NOP jobs are special and can be installed without disturbing the real job. */ Job *nop_job; + /* Job timeout and action to take */ usec_t job_timeout; + FailureAction job_timeout_action; + char *job_timeout_reboot_arg; /* References to this */ LIST_HEAD(UnitRef, refs);