/
niceSOFT
/
systemd
Обзор
Документация
Войти
/
niceSOFT
/
systemd
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/test-execute/exec-condition-skip.service
16 строк
433 B
Yu Watanabe
test: always use bash
07 дек 2025, 03:09
07 дек 2025, 03:09
b49a469
Код
Авторство
О чём код?
# SPDX-License-Identifier: LGPL-2.1-or-later [Unit] Description=Test for exec condition that triggers skipping [Service] Type=oneshot # exit codes [1, 254] will result in skipping the rest of execution ExecCondition=bash -c 'exit 0' ExecCondition=bash -c 'exit 254' # This would normally fail the unit but will not get run due to the skip above ExecCondition=bash -c 'exit 255' # This should not get run ExecStart=bash -c 'true'