Which of the following inittab entries would accomplish this?

You want to have the process /etc/myprocess run when the system enters run level 3.
Which of the following inittab entries would accomplish this?

You want to have the process /etc/myprocess run when the system enters run level 3.
Which of the following inittab entries would accomplish this?

A.
5:3:once:/etc/myprocess

B.
3:4:once:/etc/myprocess

C.
once:3:4:/etc/myprocess

D.
once:5:3:/etc/myprocess

Explanation:
The inittab file describes which processes are started at bootup and during normal operation (e.g. /etc/init.d/boot, /etc/init.d/rc, gettys…). init(8) distinguishes multiple runlevels, each of which can have its own set of processes that are started. Valid runlevels are 0-6 plus A, B, and C for ondemand entries. An entry in the inittab file has the following format:

id:runlevels:action:process

Lines beginning with ‘#’ are ignored.



Leave a Reply 1

Your email address will not be published. Required fields are marked *