On Sun, Dec 6, 2015 at 2:48 PM, João Miguel <jmcf...@openmailbox.org> wrote:

> Hello,
>
> I am not using Gentoo, but if I ask this on the Arch Linux mailing lists
> I may get flamed, get no response, or both. I'm using OpenRC version
> 0.16.4, along with the audit init script from Gentoo (I'm attaching it
> anyway for future reference). Note: I added the depend() function
> (trying various dependencies) hoping it would have an effect on the
> service being started at the specified runlevel (it didn't).
>
> Here's my problem:
>  # ls /etc/runlevels/default/auditd
> /etc/runlevels/default/auditd
>  # rc-service auditd start ; echo $?
> auditd           | * Starting auditd ...
> auditd           | * start-stop-daemon: fopen `/var/run/auditd.pid': No
> such file or directory
> auditd           | * Detaching to start `/sbin/auditd' ...
>
>              [ ok ]
> auditd           | * Loading audit rules from /etc/audit/audit.rules
> 0
>  # rc-status -s | grep audit ; echo $?
> 1
>
> I have no idea of why it complains that file does not exist when running
> /sbin/auditd manually creates it right away. auditd works normally when
> started with the init script, but although I did 'rc-update add auditd
> default', it simply does not start when that runlevel is reached. dhcpcd
> and a few other services complain of the pid file not existing too and
> start at their runlevels. I think the warning is unrelated, openrc is
> likely checking for the PID files' existance too soon.
>
> Also, I'm using rc_parallel="YES", but have tried with "NO" and get the
> same result (i.e. no evidence of auditd even existing).
>
> I don't get it, I've created my own init script for other services, and
> those show up on rc-status, if I add them to some runlevel, no matter
> whether they fail, throw warnings, or start normally, they appear both
> at boot and I can check later in /var/log/rc.log. The only abnormal
> service is auditd. What is going on? Did I do something wrong?
>
> Thank you in advance,
> João Miguel
>

Try running 'strace' on ' rc-service auditd start'. See if that helps pin
down the problem.

Reply via email to