Lines Matching defs:service
34 #include "service.h"
108 unit_ref_unset(&n->service);
180 if (!UNIT_DEREF(n->service)) {
183 r = unit_load_related_unit(u, ".service", &x);
187 unit_ref_set(&n->service, x);
190 r = unit_add_two_dependencies(u, UNIT_BEFORE, UNIT_TRIGGERS, UNIT_DEREF(n->service), true);
213 log_unit_error(UNIT(n), "Name= setting is not a valid service name Refusing.");
589 if (!UNIT_ISSET(n->service)) {
595 r = manager_add_job(UNIT(n)->manager, JOB_START, UNIT_DEREF(n->service), JOB_REPLACE, &error, NULL);
604 log_unit_warning(UNIT(n), "Failed to queue service startup job: %s", bus_error_message(&error, r));
622 if (n->activating && UNIT_ISSET(n->service)) {
623 Service *service;
625 service = SERVICE(UNIT_DEREF(n->service));
627 if (UNIT(service)->load_state != UNIT_LOADED) {
628 log_unit_error(u, "Bus service %s not loaded, refusing.", UNIT(service)->id);
1009 [BUSNAME_FAILURE_SERVICE_START_LIMIT_HIT] = "service-start-limit-hit",