Home
last modified time | relevance | path

Searched refs:service (Results 1 – 25 of 471) sorted by relevance

12345678910>>...19

/systemd-251/test/units/
Dtestsuite-15.sh9 rm -f /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service
10 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.d
11 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.{wants,requires}
13 systemctl stop "$SERVICE_NAME"*.service 2>/dev/null || :
14 rm -f /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME"*.service
15 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME"*.service.d
16 rm -fr /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME"*.service.{wants,requires}
31 cat >/etc/systemd/system/"$SERVICE_NAME".service <<EOF
38 mkdir -p /{etc,run,usr/lib}/systemd/system/"$SERVICE_NAME".service.{d,wants,requires}
64 ln -s ../test15-b.service /etc/systemd/system/test15-a.service.wants/
[all …]
Dtestsuite-65.sh15 cat <<EOF >/tmp/img/usr/lib/systemd/system/testfile.service
22 systemd-analyze verify --root=/tmp/img/ testfile.service \
26 systemd-analyze verify --recursive-errors=yes --root=/tmp/img/ testfile.service \
30 systemd-analyze verify --recursive-errors=one --root=/tmp/img/ testfile.service \
36 systemd-analyze verify --recursive-errors=no --root=/tmp/img/ testfile.service
38 rm /tmp/img/usr/lib/systemd/system/testfile.service
40 cat <<EOF >/tmp/testfile.service
48 cat <<EOF >/tmp/testfile2.service
50 Requires = testfile.service
57 systemd-analyze verify --recursive-errors=no /tmp/testfile2.service
[all …]
Dtestsuite-55.sh23 rm -rf /etc/systemd/system/testsuite-55-testbloat.service.d
30 mkdir -p /etc/systemd/system/user@.service.d/
31 …ssure=auto\nManagedOOMMemoryPressureLimit=0%" >/etc/systemd/system/user@.service.d/99-oomd-test.co…
33 mkdir -p /etc/systemd/system/systemd-oomd.service.d/
34 echo -e "[Service]\nEnvironment=SYSTEMD_LOG_LEVEL=debug" >/etc/systemd/system/systemd-oomd.service.…
40 systemctl enable systemd-oomd.service
43 if systemctl is-active systemd-oomd.service; then
44 systemctl restart systemd-oomd.service
47 systemctl start testsuite-55-testchill.service
48 systemctl start testsuite-55-testbloat.service
[all …]
Dtestsuite-68.sh10 service=$1
14 state=$(systemctl show "$service" --property=ActiveState --value)
22 state=$(systemctl show "$service" --property=ActiveState --value)
28 cat >/run/systemd/system/testservice-failure-68.service <<EOF
30 OnFailure=testservice-failure-exit-handler-68.service
36 cat >/run/systemd/system/testservice-failure-68-template.service <<EOF
38 OnFailure=testservice-failure-exit-handler-68-template@%n.service
44 cat >/run/systemd/system/testservice-success-68.service <<EOF
46 OnSuccess=testservice-success-exit-handler-68.service
52 cat >/run/systemd/system/testservice-success-68-template.service <<EOF
[all …]
Dtestsuite-48.sh9 Wants=testservice-48.service
27 cat >/run/systemd/system/testservice-48.service <<EOF
32 systemctl start testservice-48.service
34 systemctl is-active testservice-48.service
37 systemctl stop testservice-48.service
38 rm -f /run/systemd/system/testservice-48.service
43 cat >/run/systemd/system/testservice-48.service <<EOF
51 systemctl start testservice-48-nonexistent.service || true
53 systemctl start testservice-48.service
55 systemctl is-active testservice-48.service
[all …]
Dtestsuite-17.01.sh14 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=foobar.service
15 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=waldo.service
16 systemctl show -p WantedBy foobar.service | grep -q -v sda
17 systemctl show -p WantedBy waldo.service | grep -q -v sda
32 udevadm info /dev/sda | grep -q SYSTEMD_WANTS=foobar.service
33 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=waldo.service
34 systemctl show -p WantedBy foobar.service | grep -q sda
35 systemctl show -p WantedBy waldo.service | grep -q -v sda
50 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=foobar.service
51 udevadm info /dev/sda | grep -q SYSTEMD_WANTS=waldo.service
[all …]
Dtestsuite-03.sh30 systemctl stop sleep.service hello-after-sleep.target
43 systemctl try-restart --job-mode=fail hello.service
44 systemctl try-restart hello.service
45 systemctl stop hello.service sleep.service hello-after-sleep.target
50 systemctl start unstoppable.service
53 systemctl stop unstoppable.service && exit 1
55 systemctl stop --job-mode=replace-irreversibly unstoppable.service
60 systemctl start unstoppable.service
63 cat <<EOF >/run/systemd/system/wait2.service
69 cat <<EOF >/run/systemd/system/wait5fail.service
[all …]
Dtestsuite-29.sh24 mkdir -p /run/systemd/system/systemd-portabled.service.d/
25 cat <<EOF >/run/systemd/system/systemd-portabled.service.d/override.conf
32 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
[all …]
Dtestsuite-42.sh7 systemd-run --unit=simple1.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=simple…
10 systemd-run --unit=simple2.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=simple…
14 systemd-run --unit=exec1.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=exec -p …
17 systemd-run --unit=exec2.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=exec -p …
34 systemd-run --unit=forking1.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=forki…
50 systemd-run --unit=forking2.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=forki…
54 systemd-run --unit=oneshot1.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=onesh…
57 systemd-run --unit=oneshot2.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=onesh…
61 systemd-run --unit=dbus1.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=dbus -p …
66 systemd-run --unit=dbus2.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=dbus -p …
[all …]
Dtestsuite-19.sh7 systemd-run --wait --unit=test0.service -p "DynamicUser=1" -p "Delegate=" \
8 test -w /sys/fs/cgroup/system.slice/test0.service/ -a \
9 -w /sys/fs/cgroup/system.slice/test0.service/cgroup.procs -a \
10 -w /sys/fs/cgroup/system.slice/test0.service/cgroup.subtree_control
12 systemd-run --wait --unit=test1.service -p "DynamicUser=1" -p "Delegate=memory pids" \
13 grep -q memory /sys/fs/cgroup/system.slice/test1.service/cgroup.controllers
15 systemd-run --wait --unit=test2.service -p "DynamicUser=1" -p "Delegate=memory pids" \
16 grep -q pids /sys/fs/cgroup/system.slice/test2.service/cgroup.controllers
22 …systemd-run --wait --unit=test3.service -p "IOAccounting=yes" -p "Slice=system-foo-bar-baz.slice" …
23 …ice/system-foo.slice/system-foo-bar.slice/system-foo-bar-baz.slice/test3.service/cgroup.controllers
[all …]
Dtestsuite-49.sh8 systemctl start testsuite-49-namespaced.service
12 systemctl bind --mkdir testsuite-49-namespaced.service /run/testservice-49-fixed /run/inaccessible/…
17 systemctl bind --mkdir testsuite-49-namespaced.service /run/testservice-49-runtime /tmp/testfile_ru…
19 while systemctl show -P SubState testsuite-49-namespaced.service | grep -q running
24 systemctl is-active testsuite-49-namespaced.service
27 systemctl start testsuite-49-non-namespaced.service
30 systemctl bind --mkdir testsuite-49-non-namespaced.service /run/testservice-49-runtime /tmp/testfil…
33 while systemctl show -P SubState testsuite-49-non-namespaced.service | grep -q running
39 systemctl is-active testsuite-49-non-namespaced.service && exit 1
Dtestsuite-59.sh15 service=$1
19 state=$(systemctl show "$service" --property=ActiveState --value)
26 state=$(systemctl show "$service" --property=ActiveState --value)
34 cat >/run/systemd/system/testservice-fail-59.service <<EOF
43 cat >/run/systemd/system/testservice-fail-restart-59.service <<EOF
55 cat >/run/systemd/system/testservice-abort-restart-59.service <<EOF
70 systemctl start testservice-fail-59.service
76 systemctl start testservice-fail-restart-59.service
83 systemctl start testservice-abort-restart-59.service
84 systemctl --signal=SIGABRT kill testservice-abort-restart-59.service
/systemd-251/units/
Dmeson.build37 ['initrd-cleanup.service', 'ENABLE_INITRD'],
39 ['initrd-parse-etc.service', 'ENABLE_INITRD'],
42 ['initrd-switch-root.service', 'ENABLE_INITRD'],
44 ['initrd-udevadm-cleanup-db.service', 'ENABLE_INITRD'],
48 ['ldconfig.service', 'ENABLE_LDCONFIG',
54 ['modprobe@.service', ''],
102 ['system-update-cleanup.service', ''],
105 ['systemd-ask-password-console.service', ''],
108 ['systemd-ask-password-wall.service', ''],
109 ['systemd-boot-system-token.service', 'HAVE_GNU_EFI',
[all …]
Dsyslog.socket21 # Don't try to activate syslog.service if sysinit.target has failed.
22 Conflicts=emergency.service
23 Before=emergency.service
32 # The default syslog implementation should make syslog.service a
34 # syslog service.
38 # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service
39 # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
42 # (i.e. to rsyslog.service or syslog-ng.service):
45 # Alias=syslog.service
Dsystemd-networkd.service.in12 Documentation=man:systemd-networkd.service(8)
15 # systemd-udevd.service can be dropped once tuntap is moved to netlink
16 …=systemd-networkd.socket systemd-udevd.service network-pre.target systemd-sysusers.service systemd…
49 SystemCallFilter=@system-service
57 Alias=dbus-org.freedesktop.network1.service
60 # default when enabling systemd-networkd.service.
61 Also=systemd-network-generator.service
63 # We want to enable systemd-networkd-wait-online.service whenever this service
64 # is enabled. systemd-networkd-wait-online.service has
67 Also=systemd-networkd-wait-online.service
Dinitrd-switch-root.target14 Wants=initrd-switch-root.service
15 Before=initrd-switch-root.service
17 …ts=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.servi…
18 …itrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target emergency.service emergency…
/systemd-251/src/xdg-autostart-generator/
Dxdg-autostart-service.c310 _cleanup_(xdg_autostart_service_freep) XdgAutostartService *service = NULL; in xdg_autostart_service_parse_desktop()
313 service = new0(XdgAutostartService, 1); in xdg_autostart_service_parse_desktop()
314 if (!service) in xdg_autostart_service_parse_desktop()
317 service->path = strdup(path); in xdg_autostart_service_parse_desktop()
318 if (!service->path) in xdg_autostart_service_parse_desktop()
322 …esktop Entry", "Name", xdg_config_parse_string, 0, &service->description … in xdg_autostart_service_parse_desktop()
323 …esktop Entry", "Exec", xdg_config_parse_string, 0, &service->exec_string … in xdg_autostart_service_parse_desktop()
324 …esktop Entry", "Path", xdg_config_parse_string, 0, &service->working_director… in xdg_autostart_service_parse_desktop()
325 …esktop Entry", "TryExec", xdg_config_parse_string, 0, &service->try_exec … in xdg_autostart_service_parse_desktop()
326 …esktop Entry", "Type", xdg_config_parse_string, 0, &service->type … in xdg_autostart_service_parse_desktop()
[all …]
Dtest-xdg-autostart.c56 _cleanup_(xdg_autostart_service_freep) XdgAutostartService *service = NULL; in test_xdg_desktop_parse_one()
64 assert_se(service = xdg_autostart_service_parse_desktop(name)); in test_xdg_desktop_parse_one()
68 assert_se(streq(service->exec_string, "/bin/sleep 100")); in test_xdg_desktop_parse_one()
69 assert_se(strv_equal(service->only_show_in, STRV_MAKE("A", "B"))); in test_xdg_desktop_parse_one()
70 assert_se(strv_equal(service->not_show_in, STRV_MAKE("C", "D\\;", "E"))); in test_xdg_desktop_parse_one()
71 assert_se(!service->hidden); in test_xdg_desktop_parse_one()
75 assert_se(streq(service->exec_string, "a")); in test_xdg_desktop_parse_one()
78 assert_se(service->hidden); in test_xdg_desktop_parse_one()
Dxdg-autostart-generator.c80 _cleanup_(xdg_autostart_service_freep) XdgAutostartService *service = in enumerate_xdg_autostart()
82 if (!service) in enumerate_xdg_autostart()
84 service->name = TAKE_PTR(name); in enumerate_xdg_autostart()
86 r = hashmap_put(all_services, service->name, service); in enumerate_xdg_autostart()
89 TAKE_PTR(service); in enumerate_xdg_autostart()
98 XdgAutostartService *service; in run() local
111 HASHMAP_FOREACH(service, all_services) in run() local
112 (void) xdg_autostart_service_generate_unit(service, dest_late); in run()
/systemd-251/src/test/
Dtest-path.c80 … Manager *m, Path *path, Service *service, PathState path_state, ServiceState service_state) { in _check_states() argument
82 assert_se(service); in _check_states()
86 while (path->state != path_state || service->state != service_state || in _check_states()
87 path->result != PATH_SUCCESS || service->result != SERVICE_SUCCESS) { in _check_states()
100 UNIT(service)->id, in _check_states()
101 service_state_to_string(service->state), in _check_states()
102 service_result_to_string(service->result)); in _check_states()
104 if (service->state == SERVICE_FAILED && in _check_states()
105 service->main_exec_status.status == EXIT_CGROUP && in _check_states()
112 UNIT(service)->id, in _check_states()
[all …]
/systemd-251/man/rules/
Dmeson.build842 ['systemd-ask-password-console.service',
846 'systemd-ask-password-wall.service'],
849 ['systemd-backlight@.service', '8', ['systemd-backlight'], 'ENABLE_BACKLIGHT'],
850 ['systemd-binfmt.service', '8', ['systemd-binfmt'], 'ENABLE_BINFMT'],
852 ['systemd-bless-boot.service', '8', ['systemd-bless-boot'], 'HAVE_GNU_EFI'],
853 ['systemd-boot-check-no-failures.service',
857 ['systemd-boot-system-token.service', '8', [], 'HAVE_GNU_EFI'],
864 ['systemd-coredump.socket', 'systemd-coredump@.service'],
869 ['systemd-cryptsetup@.service',
882 ['systemd-firstboot', '1', ['systemd-firstboot.service'], 'ENABLE_FIRSTBOOT'],
[all …]
/systemd-251/src/resolve/
Dresolved-dnssd.c38 DnssdService *dnssd_service_free(DnssdService *service) { in dnssd_service_free() argument
39 if (!service) in dnssd_service_free()
42 if (service->manager) in dnssd_service_free()
43 hashmap_remove(service->manager->dnssd_services, service->name); in dnssd_service_free()
45 dns_resource_record_unref(service->ptr_rr); in dnssd_service_free()
46 dns_resource_record_unref(service->srv_rr); in dnssd_service_free()
48 dnssd_txtdata_free_all(service->txt_data_items); in dnssd_service_free()
50 free(service->filename); in dnssd_service_free()
51 free(service->name); in dnssd_service_free()
52 free(service->type); in dnssd_service_free()
[all …]
/systemd-251/presets/
D90-systemd.preset18 enable getty@.service
19 enable systemd-timesyncd.service
20 enable systemd-networkd.service
21 enable systemd-network-generator.service
22 enable systemd-resolved.service
23 enable systemd-homed.service
25 enable systemd-pstore.service
26 enable systemd-boot-update.service
28 disable console-getty.service
29 disable debug-shell.service
[all …]
/systemd-251/test/
Dtest-systemctl-enable.sh24 ( ! "$systemctl" --root="$root" enable test1.service )
34 "$systemctl" --root="$root" enable test1.service
38 "$systemctl" --root="$root" reenable test1.service
42 "$systemctl" --root="$root" disable test1.service
52 ln -s /usr/lib/systemd/system/test1.service "$root/etc/systemd/system/default.target.wants/test1.se…
53 ln -s /usr/lib/systemd/system/test1.service "$root/etc/systemd/system/special.target.requires/test1…
55 "$systemctl" --root="$root" enable test1.service
59 "$systemctl" --root="$root" reenable test1.service
63 "$systemctl" --root="$root" disable test1.service
82 Alias=test1-goodalias.service
[all …]
/systemd-251/test/fuzz/fuzz-unit-file/
Dsyslog.socket22 # Don't try to activate syslog.service if sysinit.target has failed.
23 Conflicts=emergency.service
24 Before=emergency.service
33 # The default syslog implementation should make syslog.service a
35 # syslog service.
39 # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service
40 # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
43 # (i.e. to rsyslog.service or syslog-ng.service):
46 # Alias=syslog.service

12345678910>>...19