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

Re: убрать из автозагрузки через /etc/init.d/



Иван Лох <loh@1917.com> writes:

> А если я скажу dpkg-reconfigure, пакетный менеджер меня спросит
> "Запускать демон по умолчанию?" я скажу "Да" (или отредактирую файл в
> /etc/defaults/ руками) -- он будет запускаться сам?

Пробовать неохота, но штатным способом создания ссылок в rc*.d является
update-rc.d, а у него есть поведение, которое описано в man:

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 оставляет ссылки K00??name, то update-rc.d просто ничего
не сделает, а оставит, как есть. Можно, конечно и проверить.


Reply to: