2 # SPDX-License-Identifier: LGPL-2.1-or-later
6 # shellcheck source=test/units/util.sh
7 .
"$(dirname "$0")"/util.sh
9 cat >/run
/systemd
/system
/nonexistent-execstart-exit-status.service
<<EOF
13 ExecStart=-/foo/bar/not-exist
16 systemctl start nonexistent-execstart-exit-status.service
17 systemctl is-active nonexistent-execstart-exit-status.service
18 assert_eq
"$(systemctl show nonexistent-execstart-exit-status.service -P Result)" "success"
19 (( $
(systemctl show nonexistent-execstart-exit-status.service
-P ExecMainStatus
) > 0 ))
21 systemctl stop nonexistent-execstart-exit-status.service
22 rm /run
/systemd
/system
/nonexistent-execstart-exit-status.service