Sunday, August 27, 2017

Verifying the Runlevel

How to know the runlevel of the system?
command to know the runlevel :     who -r
run-level 3  2017-08-23
(we have to ON run-level 3)

Where we have to ON runlevel 3 on the system  or any runlevel to the system?

cat  /etc/inittab  > we have to vi  /etc/inittab and update the  id:3:initdefault:  ---> ` to make your system works on runlevel 3  `  .

id:3:initdefault:

Details:

0 – HALT (Shutdown).
1 - Single User.
2 – Multi-User (No Network or Remote Filesystem).
3 –is a typical system runlevel (Full Multi-user (Including Networking and Remote Filesystem).
4 – unused
5 – X11 (Full Multi-User with Graphical Desktop Environment).
6 – Reboot


How to ON  or verify runlevel for specific service ?
for example:

ftp server
Verify:
chkconfig  --list | grep ftp
run level 3 should be on (it means it(that specific ftp service) has to be start on boot time).

Note: If the run level 3 is not ON  for the ipsec,we need to add them.

This is how to on them:(for the specific service):
chkconfig --level 3 ftp on







No comments:

Post a Comment