/systemd/src/machine/ |
H A D | machine.c | 361 char *scope, *description, *job = NULL; local 373 r = manager_start_scope(m->manager, scope, m->leader, SPECIAL_MACHINE_SLICE, description, properties, error, &job); 382 m->scope_job = job; 434 char *job = NULL; local 443 r = manager_stop_unit(m->manager, m->unit, &error, &job); 450 m->scope_job = job;
|
H A D | machined-dbus.c | 1185 sd_bus_error_setf(&e, BUS_ERROR_JOB_FAILED, "Start job for unit %s failed with '%s'", unit, result); 1285 char **job) { 1354 if (job) { 1366 *job = copy; 1372 int manager_stop_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job) { argument 1392 if (job) 1393 *job = NULL; 1402 if (job) { 1414 *job = copy; 1506 * that we could read the job stat 1277 manager_start_scope( Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, sd_bus_message *more_properties, sd_bus_error *error, char **job) argument [all...] |
/systemd/src/login/ |
H A D | logind-user.c | 396 char *job; local 412 &job); 414 u->slice_job = job; 425 char *job; local 436 &job); 441 u->service_job = job; 459 * re-used just fine (pid1 takes care of job-ordering and proper 510 char *job; local 515 r = manager_stop_unit(u->manager, u->slice, &error, &job); 522 u->slice_job = job; 529 char *job; local [all...] |
H A D | logind-session.c | 516 char *scope, *job = NULL; local 535 &job); 544 s->scope_job = job; 613 char *job = NULL; local 622 r = manager_stop_unit(s->manager, s->scope, &error, &job); 629 s->scope_job = job;
|
H A D | logind-dbus.c | 2582 sd_bus_error_setf(&e, BUS_ERROR_JOB_FAILED, "Start job for unit %s failed with '%s'", unit, result); 2751 static int strdup_job(sd_bus_message *reply, char **job) { argument 2764 *job = copy; 2776 char **job) { 2783 assert(job); 2837 return strdup_job(reply, job); 2850 char **job) { 2858 assert(job); 2933 return strdup_job(reply, job); 2936 int manager_start_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job) { argument 2768 manager_start_slice( Manager *manager, const char *slice, const char *description, const char *after, const char *after2, uint64_t tasks_max, sd_bus_error *error, char **job) argument 2840 manager_start_scope( Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, const char *after, const char *after2, uint64_t tasks_max, sd_bus_error *error, char **job) argument 2959 manager_stop_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job) argument [all...] |
/systemd/src/core/ |
H A D | unit.h | 61 #include "job.h" 98 /* If there is something to do with this unit, then this is the installed job for it */ 99 Job *job; member in struct:Unit 101 /* JOB_NOP jobs are special and can be installed without disturbing the real job. */ 347 /* When the unit is not running and no job for it queued we 381 * state or gains/loses a job */ 393 * inactive state. It is the job of the coldplug() call above
|
/systemd/src/systemctl/ |
H A D | systemctl.c | 502 puts(job_count ? "JOB = Pending job for the unit.\n" : ""); 2124 static bool output_show_job(struct job_info *job, char **patterns) { argument 2125 return strv_fnmatch_or_empty(patterns, job->name, FNM_NOESCAPE); 2163 struct job_info job = { id, name, type, state }; local 2165 if (!output_show_job(&job, strv_skip(argv, 1))) { 2173 jobs[c++] = job; 2207 return log_error_errno(q, "Failed to parse job id \"%s\": %m", *name); 2219 log_error_errno(q, "Failed to cancel job %"PRIu32": %s", id, bus_error_message(&error, q)); 4682 /* Interpret as job id */ 4683 if (asprintf(&unit, "/org/freedesktop/systemd1/job/ [all...] |