Welcome to little lamb

Code » anopa » jjk » tree

[jjk] / doc / aa-post-stage2.pod

=head1 NAME

aa-post-stage2 - Helper for aa-start's return code post stage 2

=head1 SYNOPSIS

B<aa-post-stage2>

=head1 DESCRIPTION

B<aa-post-stage2>(1) is an B<execline> script meant to be used as handler for
B<aa-start>(1) return code in stage 2. In other words, it should be set as
I<REPODIR/.anopa/post-stage2>

It checks B<aa-start>(1) return code (given as argument) for bit 1 or 16, and if
at least one is set executes into an interactive shell (I<sh -i>).

Bit 1 being set means B<aa-start>(1) failed with a fatal error; Bit 16 means at
least one service marked essential failed.

If neither are set, it echoes "System ready." (even though some (non essential)
services might have failed).

If the return code was 0, i.e. nothing failed, it switches to tty2 (where one
would expect a getty with login prompt to be available).