start-stop-daemon

Autres langues

Langue: ru

Version: 15 ÍÁÒÔÁ 1997 (mandriva - 22/10/07)

Section: 8 (Commandes administrateur)

���

start-stop-daemon - ������ � ��������� ��������� ��������-�������

�����

start-stop-daemon -S|--start ����� [--] ���������
start-stop-daemon -K|--stop ����� ...
start-stop-daemon -H|--help
start-stop-daemon -V|--version

��������

start-stop-daemon ������������ ��� ���������� ��������� � ����������� ��������� ���������. ��������� ����� --exec, --pidfile, --user, � --name, start-stop-daemon ����� ���� �������� ��� ������ ��� ���������� ����������� ��������.

start-stop-daemon � ������ --start ��������� ������������� ���������� ��������. ���� ����� ������� ����������, start-stop-daemon ������ �� ������ � ���������� ������ � ����� ����������~1 (���~0, ���� ����� ���� --oknodo). ���� �� ����� ������� �� ����������, �� �� �����������, ��������� ���� ����������� ����, �������� ������ --exec, ���� ������ --startas, ���� �� �����). ���������, �������� � ��������� ������ ����� --, ����� ��� ��������� �������� ����������� ���������. ���� ������ ���� --retry, �� start-stop-daemon ������ ����������� ���������� ��������(��).

start-stop-daemon � ������ --stop ����� ��������� ������������� ��������� ��������. ���� ����� ������� ����������, �� start-stop-daemon �������� ��� ������, �������� ������ --signal, � ���������� ������ � ����� ����������~0. ���� �� ����� ������� �� ����������, �� start-stop-daemon ���������� ������ � ����� ����������~1 (���~0, ���� ����� ���� --oknodo).

�����

-x|--exec �����������_����
��������� ��������, ������� �������� ������������ ������� ������������ ����� (�������� /proc/pid/exe).
-p|--pidfile pid-����
��������� ��������, ��� �������������� �������� �������� � pid-����.
-u|--user ���_������������|uid
��������� ��������, ������������� ������������, ���������� � ������� �����_������������ ��� uid.
-n|--name process-name
��������� �������� � ������ process-name (�������� /proc/pid/stat).
-s|--signal signal
��� ������������� ������ � ������ --stop, ����� ������, ������� ����� ������ ��������� ��� �� �������� (�� ���������~15).
-R|--retry ����-���|�����
��� ������������� ������ � ������ --stop ���������, ��� start-stop-daemon ������ ��������� ������� �� ���������� ����������� ��������. ������������ ����� �����������, ����������� �� �ݣ ��������� ��������, �� ��� ���, ���� ��� ��� �� ����������. ���� �������� �� �����������, �� ����� ����������� ��������, �������� � ��������� �����.

���� ������ ��������� ����� ������ ����-���, �� ������������ ������������������ �������� ������/timeout/KILL/timeout, ��� signal~-- ��� ������, �������� ������ --signal.

������, �������� �����~-- ��� ������������������ �� �� ����� ���� ���������, �����̣���� ����� ������ (/); ���ޣ� ������ ������� -- ��� ���� -�����-������� ��� [-]��������-�������, ��� ����-���, �������� ���������� ������, � ������� ������� ������� ����� ���������� ��������, ��� �� ����� forever, �������������� ��������� ������� ������������������ �� �������, ���� �����.

���� ��������� ����� ������������������ ��������, � forever �� ���� �������, �� start-stop-daemon ���������� ������ � ����� ����������~2. ���� �������� ����� ������, �� ������, �������� � ������� ����� --signal, ������������.

-a|--startas ������_���
��� ������������� � ������ --start ��������� �������, ��������� � ��������� ������_���. ���� ���� ���� �� �����, �� ��ң��� ��������, �������� ������ --exec.
-t|--test
���������� ��������, ������� ������ ���� ��������� � ���������� ��������������� ��� ����������, �� �� ��������� ��� ��������.
-o|--oknodo
���������� ���~0 ������~1, ���� �� ���� ��������� (��� �� ������ ���� ���� ���������) ������� ��������.
-q|--quiet
�� �������� �������������� ���������; ������ ��������� �� �������.
-c|--chuid ���-������������|uid
���������� ������ ��� ������������ ��� uid ����� �������� ��������. �� ������ ����� ������ ������, ������� ��������� :, � ��� ������ ��� gid, ��� � ������� `chown' (������������:������). ��� ������������� ����� ����� �� ������ ��������, ��� �������� � �������������� ������ ����� �����������, ���� ���� �� ����� ���� --group. ���� --group ������������ ������ ��� �����, � ������� ������������ ������ �� ������� (��������, � ������ � ��������� ������������� `nobody').
-r|--chroot root
����� �������� �������� ������� � ������� root � ������� ��� �������� (� ������� chroot). ��������, ��� pid-���� ����� ������ ����� ��������� ������ ��������� ��������.
-b|--background
���� ���� ������ ������������ � �����������, ������� �� ����� ���� ����������� �� ���������, �� ������� ��� ��������. ���� ���� �������� start-stop-daemon ������� fork() ����� �������� �������� � ���� � ������� �����. ��������: start-stop-daemon �� ����� ��������� ��� ��������, ���� ������� �� ����� ������� ����������� �� ����� �� �� �� ���� �������. ���~-- ��������� �����������, ��������������� ������ ��� ��������, ������� �� ����� ������ ��������� fork() �����, ��� ���� ��� ����������� �������� � ��� ��� ��� �����.
-n|--nicelevel
���� ���� ����� �������� �������� ��������� ��������.
-m|--make-pidfile
���� ���� ������������, ���� ����������� ��������� �� ������ ���� ����������� pid-����. ��� ���� start-stop-daemon ��������������� ����� �������� �������� ������� ����, ��������� � ��������� ����� --pidfile � �������� � ���� pid ������������ ��������. ��������, ��� ���� ���� �� ����� ���̣� ��� ��������� ���������. ���������: ��� ����������� ������ ����� �� ��������: � �������� ��� ���������, ����� ����������� ��������� ��������� fork(). ������� ������ ���� ������ ������ ������� ������ ��� ������������� ������ � ������ --background.
-v|--verbose
�������� ��������� �������������� ���������.
-H|--help
������ ��������� � �����������.
-V|--version
������ ���������� � ������ � �����������.

������

Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>, ����������� �� ������, ��������� by Ian Jackson <ian@chiark.greenend.org.uk>.

�������� ����������� by Klee Dienes <klee@mit.edu>, �������� ����������������� by Ian Jackson.

�������

����ף� � ����������� ������ ���������� <victor_v@permonline.ru>. ���������� � ����������: Alexey Mahotkin <alexm@hsys.msk.ru>.