Which four statements are about the use of these files and directories by UPSTART?

Which four statements are about the use of these files and directories by UPSTART?

Which four statements are about the use of these files and directories by UPSTART?

A.
/etc/rc.d/rc is executed each time the /sbin/init command us used, to change services
appropriately for the target run level.

B.
/etc/rc.d/rc.local is executed at boot time, before the run level processing takes place.

C.
/etc/rc.d/rc is executed at boot time, to start the appropriate services for the run level defined in
/etc/initab.

D.
/etc/rc.d/rc.sysinit is executed once at boot time, regardless of which run level is set.

E.
/etc/rc.d/rc.sysint is executed each time the /sbin/init command is used to change the run level.

F.
/etc/rc.d/rc3.d contains links to scripts in /etc/init.d.

G.
/etc/rc.d/rc is executed after /etc/rc.d/rc.local.

Explanation:



Leave a Reply 9

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


Momo

Momo

[root@Cluster-Node1 rc.d]# vi rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don’t
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
~

G is incorrect.

Momo

Momo

# rc This file is responsible for starting/stopping
# services when the runlevel changes.

E is incorrect.

Lilacmega

Lilacmega

The answer is A.C.D.F
===================

roman

roman

A,D,F

C +/- – “Which four statements are …”

B,E,G are wrong

– rc.sysinit: Runs once at boot time
– rc: Starts and stops services when the runlevel changes
– rc.local: Is the last script that the init program executes

Jef Adams

Jef Adams

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error. —> not B, not G

When the init command starts, it becomes the parent or grandparent of all of the processes that start up automatically on the system. First, it runs the /etc/rc.d/rc.sysinit script —> D

[Jef@ToshibaZ30-Jef rc3.d]$ ls -al
total 8
drwxr-xr-x. 2 root root 4096 Sep 10 20:41 .
drwxr-xr-x. 10 root root 4096 Nov 20 11:59 ..
lrwxrwxrwx. 1 root root 20 Nov 19 14:40 K50netconsole -> ../init.d/netconsole
lrwxrwxrwx. 1 root root 17 Nov 19 14:40 S10network -> ../init.d/network
lrwxrwxrwx. 1 root root 17 Nov 19 16:20 S44pgpwded -> ../init.d/pgpwded
lrwxrwxrwx. 1 root root 19 Nov 19 15:36 S85vpnagentd -> ../init.d/vpnagentd
lrwxrwxrwx. 1 root root 13 Nov 19 16:06 S91cma -> ../init.d/cma
lrwxrwxrwx. 1 root root 15 Nov 19 17:07 S92nails -> ../init.d/nails
lrwxrwxrwx. 1 root root 15 Nov 19 17:07 S95jexec -> ../init.d/jexec
lrwxrwxrwx. 1 root root 15 Nov 19 14:42 S97rhnsd -> ../init.d/rhnsd
–> F obvious

Once the system boots, /etc/rc.d/rc.sysinit is run first. The starting runlevel (specified in /etc/inittab) is found, and the /etc/rc.d/rc script is run, with the sole option being the runlevel we want to go to. For most startups, this is runlevel 3.—> C,D,A

So correct 4 answers are : A,C,D,F

Dilliadis

Dilliadis

A, C, D, F