Home
last modified time | relevance | path

Searched refs:active (Results 1 – 25 of 94) sorted by relevance

1234

/systemd-251/src/login/
Dlogind-session-device.c116 static int session_device_open(SessionDevice *sd, bool active) { in session_device_open() argument
131 if (active) { in session_device_open()
146 if (!active) in session_device_open()
165 if (sd->active) in session_device_start()
199 sd->active = true; in session_device_start()
206 if (!sd->active) in session_device_stop()
238 sd->active = false; in session_device_stop()
352 sd->active = session_is_active(s); in session_device_new()
353 r = session_device_open(sd, sd->active); in session_device_new()
356 if (sd->active && r == -EINVAL) { in session_device_new()
[all …]
Dlogind-seat.c71 assert(!s->active); in seat_free()
114 if (s->active) { in seat_save()
115 assert(s->active->user); in seat_save()
120 s->active->id, in seat_save()
121 s->active->user->user_record->uid); in seat_save()
217 !!s->active, s->active ? s->active->user->user_record->uid : 0); in seat_apply_acls()
231 if (session == s->active) in seat_set_active()
234 old_active = s->active; in seat_set_active()
235 s->active = session; in seat_set_active()
305 if (s->active && s->active->position > 0) in seat_switch_to_next()
[all …]
Dlogind-session-device.h24 bool active:1; member
39 void session_device_attach_fd(SessionDevice *sd, int fd, bool active);
Dlogind-session.c116 if (s->seat->active == s) in session_free()
117 s->seat->active = NULL; in session_free()
414 *active = NULL, in session_load() local
446 "ACTIVE", &active, in session_load()
576 if (active) { in session_load()
577 k = parse_boolean(active); in session_load()
614 if (s->seat->active == s) in session_activate()
739 if (s->seat && s->seat->active == s) in session_start()
866 if (s->seat->active == s) in session_finalize()
911 return s->seat->active == s; in session_is_active()
Dlogind.c688 Session *active; in manager_vt_switch() local
707 active = m->seat0->active; in manager_vt_switch()
708 if (!active || active->vtnr < 1) { in manager_vt_switch()
735 if (active->vtfd >= 0) in manager_vt_switch()
736 session_leave_vt(active); in manager_vt_switch()
739 if (iter->vtnr == active->vtnr && iter->vtfd >= 0) { in manager_vt_switch()
Dlogind-seat-dbus.c42 p = s->active ? session_bus_path(s->active) : strdup("/"); in property_get_active_session()
46 return sd_bus_message_append(reply, "(so)", s->active ? s->active->id : "", p); in property_get_active_session()
/systemd-251/test/units/
Dtestsuite-29.sh32 systemctl is-active minimal-app0.service
33 systemctl is-active minimal-app0-foo.service
34 systemctl is-active minimal-app0-bar.service && exit 1
38 systemctl is-active minimal-app0.service
39 systemctl is-active minimal-app0-bar.service
40 systemctl is-active minimal-app0-foo.service && exit 1
57 systemctl is-active minimal-app0.service
58 systemctl is-active minimal-app0-foo.service
59 systemctl is-active minimal-app0-bar.service && exit 1
63 systemctl is-active minimal-app0.service
[all …]
Dtestsuite-12.sh28 systemctl is-active test12.socket
34 systemctl is-active test12.socket
40 systemctl is-active test12.socket
45 systemctl is-active test12.socket
Dtestsuite-48.sh34 systemctl is-active testservice-48.service
55 systemctl is-active testservice-48.service
82 systemctl is-active testservice-48.service
Dtestsuite-03.sh33 systemctl is-active systemd-importd && { echo 'unexpected success'; exit 1; }
35 systemctl is-active systemd-importd
37 systemctl is-active systemd-importd && { echo 'unexpected success'; exit 1; }
Dtestsuite-49.sh24 systemctl is-active testsuite-49-namespaced.service
39 systemctl is-active testsuite-49-non-namespaced.service && exit 1
Dtestsuite-11.sh8 while [[ "$active_state" == "activating" || "$active_state" =~ ^(in)?active$ ]]; do
Dtestsuite-49-namespaced.service4 # Adding a new mounts at runtime works if the unit is in the active state,
/systemd-251/shell-completion/bash/
Dsystemd-run37 --on-active --on-boot --on-startup --on-unit-active --on-unit-inactive --on-calendar
46 … -E --setenv --on-active --on-boot --on-startup --on-unit-active --on-unit-inactive --on-calendar
62 …--unit|--description|--on-active|--on-boot|--on-startup|--on-unit-active|--on-unit-inactive|--on-c…
/systemd-251/src/basic/
Dterminal-util.c641 _cleanup_free_ char *active = NULL; in resolve_dev_console() local
653 r = read_one_line_file("/sys/class/tty/console/active", &active); in resolve_dev_console()
658 tty = strrchr(active, ' '); in resolve_dev_console()
662 tty = active; in resolve_dev_console()
665 active = mfree(active); in resolve_dev_console()
668 r = read_one_line_file("/sys/class/tty/tty0/active", &active); in resolve_dev_console()
672 tty = active; in resolve_dev_console()
675 if (tty == active) in resolve_dev_console()
676 *ret = TAKE_PTR(active); in resolve_dev_console()
/systemd-251/src/getty-generator/
Dgetty-generator.c193 _cleanup_free_ char *active = NULL; in run() local
194 (void) read_one_line_file("/sys/class/tty/console/active", &active); in run()
195 for (const char *p = active;;) { in run()
/systemd-251/src/journal-remote/
Djournal-remote.c194 s->active++; in get_source_for_fd()
212 s->active--; in remove_source()
298 s->active++; in journal_remote_add_raw_socket()
408 log_debug("%zu active sources remaining", s->active); in journal_remote_handle_raw_source()
Djournal-remote.h26 size_t active; member
/systemd-251/src/systemctl/
Dmeson.build24 'systemctl-is-active.c',
25 'systemctl-is-active.h',
/systemd-251/shell-completion/zsh/
D_systemctl.in17 "condrestart:Restart one or more units if active"
18 "try-restart:Restart one or more units if active"
20 "force-reload:Reload one or more units if possible, otherwise restart if active"
21 "try-reload-or-restart:Reload one or more units if possible, otherwise restart if active"
24 "is-active:Check whether units are active"
244 for fun in is-active is-failed is-enabled status show preset help list-dependencies edit revert add…
D_systemd-run35 '--on-active=[Run after SEC seconds]:SEC' \
41 '--on-unit-active=[Run SEC seconds after the last activation]:SEC' \
/systemd-251/src/shared/
Dsleep-config.c471 _cleanup_free_ char *active = NULL; in enough_swap_for_hibernation() local
495 r = get_proc_field("/proc/meminfo", "Active(anon)", WHITESPACE, &active); in enough_swap_for_hibernation()
501 r = safe_atollu(active, &act); in enough_swap_for_hibernation()
503 … log_debug_errno(r, "Failed to parse Active(anon) from /proc/meminfo: %s: %m", active); in enough_swap_for_hibernation()
/systemd-251/test/fuzz/fuzz-netdev-parser/
D25-bond-active-backup-slave.netdev6 Mode=active-backup
/systemd-251/test/test-network/conf/
D25-bond-active-backup-slave.netdev7 Mode=active-backup
/systemd-251/src/core/
Ddbus-manager.h12 void bus_manager_send_reloading(Manager *m, bool active);

1234