/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.0.2
init.d/auditd.stop
21 строка
503 B
Steve Grubb
fix quoting of stop script
14 июл 2019, 17:38
14 июл 2019, 17:38
be5c84c
Код
Авторство
О чём код?
#!/bin/sh # Helper script to provide legacy auditd service options not # directly supported by systemd # Check that we are root ... so non-root users stop here test $(id -u) = 0 || exit 4 PATH=/sbin:/bin:/usr/bin:/usr/sbin prog="auditd" . /etc/rc.d/init.d/functions pid="$(__pids_pidof "$prog")" printf "Stopping logging: " killproc $prog -TERM RETVAL=$? if [ -n "$pid" ] ; then # Wait up to 20 seconds for auditd to shutdown timeout 20 tail --pid="$pid" -f /dev/null fi echo exit $RETVAL