On 06/05/2016 11:37 AM, J. GarcĂa wrote:
>>
> It works, and is harmless as you say, but since I'm not running OpenRC,
> it prints a warning to stderr about openrc not running, at least I find
> that a bit annoying,
Oh ok, I didn't know about that. Yes it would be annoying to have that
emailed to you every day. The first line of the script redirects stdout,
# First, redirect stdout to /dev/null.
exec 1>/dev/null
but stderr is left intact.
> The following message is print every time /etc/init.d/{spamd,amavisd}
> status is run, e.g.:
>
> # /etc/init.d/spamd status
> * You are attempting to run an openrc service on a
> * system which openrc did not boot.
> ...
>
Does that happen with rc-service, too? Or only with the init script
(which uses openrc-run)? I recently updated the job on the wiki to use
rc-service after we've checked that it exists.
If it still prints the error, I'll just redirect stderr to /dev/null
during the check.