Examine these commands used to control UPSTART logging:
[root@FAROUT init] # initctl log-priority info
[root@FAROUT init] # initctl log-priority
Info
[root@FAROUT init]#
Which three statements are true about the logging done through these commands?
A.
UPSTART logs State Changes to /vat/log/messages.
B.
UPSTART logs job goals to /var/log/massages.
C.
UPSTART logs only informational messages about warnings and errors to /var/log/messages.
D.
UPSTART logs only informational messages about warnings to /var/log/messages.
E.
UPSTART logs event emissions to /var/log/messages.
Explanation:
A B C
Answer : A, B and E
initctl log-priority
Where may be one of:
debug
info
message
warn
error
fatal
For example, if the job is currently in state starting, and its goal is start, it will then move to the pre-start state.
Job State Transitions.
Current
State
Goal
start stop
waiting starting n/a
starting security stopping
security pre-start stopping
pre-start spawned stopping
spawned post-start stopping
post-start running stopping
running stopping pre-stop or stopping [15]
pre-stop running stopping
stopping killed killed
killed post-stop post-stop
post-stop starting waiting
Note that jobs may change state so quickly that you may not be able to observe all the values above in the initctl output. However, you will see the transitions if you raise the log-priority to debug or info. See initctl log-priority for details.
So I would go for answers A,B,E