[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Новичок в Debian



yuri.nefedov@gmail.com writes:

>> зачем сносить gdm (случайно вместе с ним
>> можно и гнома с половинойсофта снести)
>> его просто можно отключить из автозаг
>> рузки системы#update-rc.d gdm remove
>>
>
>   И быть готовым набирать эту команду п
>   осле каждогообновления gdm? Для testing лу
>   чше всё же удалить.

Я прошу прощения. Я сначала ответил ниже по треду Михаилу Гусарову, но
сообщение в рассылку что-то подозрительно долго не идет. То ли случайно
ответил в личку, то ли еще что. Повторю, но уже не ему, так как сюда
более релевантно. И добавлю, что могу ошибиться, так как проверять не
хочется сейчас.

Если сервис удаляется при помощи rcconf, например, то после его гашения
в каждом /etc/rc?.d остается ссылка вида K00<имя_скрипта_в_/etc/init.d>. 

В man update-rc.d читаем:

If any files /etc/rcrunlevel.d/[SK]??name already exist then update-
rc.d does nothing.  The program was written this way so that it will
never change an existing configuration, which may have been customized
by the system administrator.  The program will only install links if
none are present, i.e., if it appears that the service has never been
installed before.


А следующий абзац поясняет, как правильно выключать сервисы. По этому
алгоритму, собственно, rcconf и работает:


A common system administration error is to delete the links with the
thought that this will "disable" the service, i.e., that this will pre‐
vent the service from being started.  However, if all links have been
deleted then the next time the package is upgraded, the package’s
postinst script will run update-rc.d again and this will reinstall links
at their factory default locations.  The correct way to disable services
is to configure the service as stopped in all runlevels in which it is
started by default.  In the System V init system this means renaming the
service’s symbolic links from S to K.


Reply to: