/
niceSOFT
/
systemd
Обзор
Документация
Войти
/
niceSOFT
/
systemd
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/test-execute/exec-noexecpaths-simple.service
11 строк
385 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 NoExecPaths= [Service] Type=oneshot # This should work, as we explicitly disable the effect of NoExecPaths= ExecStart=+bash -c '/bin/cat /dev/null' # This should also work, as we do not disable the effect of NoExecPaths= but invert the exit code ExecStart=bash -x -c '! /bin/cat /dev/null' NoExecPaths=/bin/cat