Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

RC2(1M)

��������
rc2 - ��������� �������� � ��������������������� �����

���������

      /etc/rc2

��������
��������� /etc/rc2 ���������� � ������������ �� ������ �������� init(1M), ���������� � ����� /etc/inittab. ��������� rc2 ��������� ��������, ����������� ������� � ��������� ���������� � ������������ ������������� (������ ��� ������� 2, ��� ���������� ��������������������� �����).

��������� rc2 �������� ����� �� �������� /etc/rc.d, � ����� ����� (������������ � ����� S) �� �������� /etc/ rc2.d. ��� ����� ����������� ��������� ��������������� � ���������� �������, ������������ ����� ASCII (����������� ��. ���� � ������ �����). ��� ���������� ����� �������, ��������� ������������� ��� �������� � ��������������������� �����, ��������������� ����� ������ ���� �������� � ������� /etc/rc2.d.

������ ��������� rc2 � ���������� �� ����� ��������� ��������� ������������������ ��������:

  1. ��������� ��� ����� �� ��������� /tmp � /usr/tmp.
  2. ���������������� ��� ����� � ����������� ��������������� ���������.
  3. ����������� ����� ���������� �������� /etc/cron.
  4. ��������� ��������� ����� � �����-����� �� �������� /usr/spool/locks.

��������� rc2 ����� ���� ��������� ������ ������������������.

�������
���� ������������ ������� �������� �� �������� /etc/ rc2.d. ����� ������ ���������� � �������� Sn, ��� n �����, ������������ ������� ���������� ������.

	S03MOUNTFILESYS
	     # ������������ �������� ������
	     cd /
	     /etc/mountall /etc/fstab
	
	S04RMTMPFILES
	     # ������� �������� /tmp
	     rm -rf /tmp
	     mkdir /tmp
	     chmod 777 /tmp
	     chgrp sys /tmp
	     chown sys /tmp
	
	S70uucp
	     # �������� ��������� ������ ������� uucp.
	     rm -rf /usr/spool/locks/*

�����
����� � �������� /etc/rc2.d ������ ���������� � S ��� K, �� �������� ������� ����� � ����� ������� �����. ��� ������ �� ������� ���������� 2 ����� ���� S* ����������� � ������ start, ����� �* - � ������ stop. �����, ������������ � ������ ��������, ������������. ��������� �������� ����� ������������ ��� ���������� ���������� ������ ��� �� ��������.

����� ��������� /etc/rc.d � /etc/rc2.d ����������� � ���������� �������, ������������ ����� ASCII.

��. �����
shutdown(1M).
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT