puppet-openstacklib/templates/policy-rc.d.erb
Takashi Kajinami c6a08eaf8d policy-rc.d: Define default behavior(return code)
... to avoid the warning triggered by logrotate, which was reported in
the bug.

/etc/cron.daily/logrotate:
invoke-rc.d: policy-rc.d query returned "behaviour undefined",
invoke-rc.d: assuming "rotate" is allowed.
invoke-rc.d: policy-rc.d query returned "behaviour undefined",
invoke-rc.d: assuming "rotate" is allowed.

Partial-Bug: #1873030
Change-Id: Icc0c12a6a66d3eb6f655ba1145ba372d5b1d2d43
2022-06-26 14:34:34 +09:00

9 lines
114 B
Plaintext

#!/bin/bash
<% @services.each do |service| %>
if [ "$1" == "<%= service %>" ]
then
exit 101
fi
<% end %>
exit 0