File: systemd

package info (click to toggle)
logcheck 1.4.7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: sh: 1,143; perl: 274; makefile: 78
file content (62 lines) | stat: -rw-r--r-- 3,903 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## services, and other units
#   https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/job.c#L647 #L659 #587 #589
#   from: job_start_message_format, job_done_message_format
# not including: Reloaded/Reloading
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: (Start|Stopp)ed .+\.$
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: (Start|Stopp)ing .+\.$

# eg, units started by timers
#   https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/unit.c#6023
#   from: unit_log_success
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: [^ ]+: Deactivated successfully\.$

# possibly from: unit_notify, https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/unit.c/#L2706
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: [^ ]+: Succeeded\.$

# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/unit.c/#L2350
# from: unit_log_resources, optional memory peak from memory_fields added from strextendf_with_separator at L2377
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: [^ ]+: Consumed .+ CPU time(, .+ memory peak)?\.$

# services with Type=Oneshot print 'Finished' on exit
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/service.c/#L5425
# from: service_finished_job
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Finished .+\.$

# services with Restart=always (eg console-getty.service)
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/service.c#L2680
# from: service_enter_restart
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: [^ ]+\.service: Scheduled restart job, restart counter is at [0-9]+\.$

## timers
# no longer produced normally?
#^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: [^ ]+\.timer: Adding .+ random time\.$

## slices
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/slice.c#L428-431
# from: .status_message_formats in slice_vtable
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: (Creat|Remov)ed slice .+\.$

## targets
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/target.c/#L201
# # from: .status_message_formats in target_vtable ('Stopped target xxx' already matched by first rule)
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Reached target .+\.$

# eg on logout from console
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/manager.c/#L3062
# from: manager_start_special
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Activating special unit exit\.target\.\.\.$

## sockets
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/socket.c/#L3626-3631
# from: .status_message_formats socket_vtable
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Listening on .+\.$
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Closed .+\.$

## The following seem to be produced only when systemd-sysv is installed (which is usually the case)
# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/main.c/#L2605
# from: do_queue_default_job
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Queued start job for default target .+\.$

# https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/manager.c/#L3919-3949
# from: manager_notify_finished
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ systemd\[[0-9]+\]: Startup finished in .+\.$