/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.0
init.d/auditd.state
24 строки
496 B
Steve Grubb
Remove dependency on chkconfig
05 июл 2019, 19:58
05 июл 2019, 19:58
d1c80e0
Код
Авторство
О чём код?
#!/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" state_file="/var/run/auditd.state" . /etc/rc.d/init.d/functions printf "Getting auditd internal state: " killproc $prog -CONT RETVAL=$? echo -e "\n" sleep 1 if [ $? -eq 0 ] ; then if [ -e $state_file ] ; then cat $state_file fi fi echo exit $RETVAL