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

Re: Новичок в Debian



Mikhail Gusarov <dottedmag@dottedmag.net> writes:

> Так можно и gdm захолдить, раз речь шла о том, что он будет каждый раз
> при апгрейде себе sysv-ссылки пересоздавать :)

Сейчас могу ошибочно сказать, так как проверять не хочется. А будет ли
он каждый раз пересоздавать ссылки, если gdm выключить, например, при
помощи rcconf? Когда выключешь при помощи rcconf, то он в каждом rc?.d
оставляет ссылку типа K00<название скрипта из 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: