2 # SPDX-License-Identifier: LGPL-2.1-or-later
6 # Check that timestamps of a Type=notify service are consistent
8 systemd-run
--service-type notify
--property NotifyAccess
=all
--unit notify.service
--wait sh
-c 'systemd-notify --ready; exit 1' ||
:
10 start
=$
(systemctl show
--property=ExecMainStartTimestampMonotonic
--value notify.service
)
11 handoff
=$
(systemctl show
--property=ExecMainHandoffTimestampMonotonic
--value notify.service
)
12 active
=$
(systemctl show
--property=ActiveEnterTimestampMonotonic
--value notify.service
)
13 exit=$
(systemctl show
--property=ExecMainExitTimestampMonotonic
--value notify.service
)
15 [[ $start -le $handoff ]]
16 [[ $handoff -le $active ]]
17 [[ $active -le $exit ]]