Lines Matching refs:scope
125 if (s->scope) { in session_free()
126 hashmap_remove(s->manager->session_units, s->scope); in session_free()
127 free(s->scope); in session_free()
249 if (s->scope) in session_save()
250 fprintf(f, "SCOPE=%s\n", s->scope); in session_save()
424 "SCOPE", &s->scope, in session_load()
648 if (!s->scope) { in session_start_scope()
649 _cleanup_free_ char *scope = NULL; in session_start_scope() local
654 scope = strjoin("session-", s->id, ".scope"); in session_start_scope()
655 if (!scope) in session_start_scope()
662 scope, in session_start_scope()
680 scope, bus_error_message(error, r)); in session_start_scope()
682 s->scope = TAKE_PTR(scope); in session_start_scope()
685 (void) hashmap_put(s->manager->session_units, s->scope, s); in session_start_scope()
751 if (!s->scope) in session_stop_scope()
757 r = manager_abandon_scope(s->manager, s->scope, &error); in session_stop_scope()
771 … r = manager_stop_unit(s->manager, s->scope, force ? "replace" : "fail", &error, &s->scope_job); in session_stop_scope()
1141 if (s->scope) { in session_may_gc()
1144 r = manager_unit_is_active(s->manager, s->scope, &error); in session_may_gc()
1146 …no(r, "Failed to determine whether unit '%s' is active, ignoring: %s", s->scope, bus_error_message… in session_may_gc()
1183 if (!s->scope) in session_kill()
1186 return manager_kill_unit(s->manager, s->scope, who, signo, NULL); in session_kill()