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
This commit is contained in:
Takashi Kajinami 2022-06-26 09:56:09 +09:00
parent 0f5dcbc909
commit c6a08eaf8d
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ then
exit 101
fi
exit 0
eof
}
@ -65,7 +65,7 @@ then
exit 101
fi
exit 0
eof
}

View File

@ -5,4 +5,4 @@ then
exit 101
fi
<% end %>
exit 0