Windows Services автоматически не запускается после перезагрузки?

Я использовал эту пошаговую демонстрацию, чтобы установить Сжатие HTTP (gzip и выкачать) на IIS 6. Я использовал этот пример metabase.xml для тонкой настройки моей конфигурации для лучших результатов.

10
задан 6 December 2017 в 17:31
3 ответа

What do you mean when you say "we've got some Windows services"? That suggest to me that they're created internally by someone within your organisation? If so then you're in a better position to debug them than anyone else here - what dependencies do these services have on windows components and are your programmers considered testing for the availability of these services and waiting for them to come online when your services start?

Have you considered setting these services as a dependency of the software licensing service (that's what slsvc is)?

from http://support.microsoft.com/kb/193888

To create a new dependency, select the subkey representing the service you want to delay, click Edit, and then click Add Value. Create a new value name "DependOnService" (without the quotation marks) with a data type of REG_MULTI_SZ, and then click OK. When the Data dialog box appears, type the name or names of the services that you prefer to start before this service with one entry for each line, and then click OK.

The name of the service you would enter in the Data dialog box is the exact name of the service as it appears in the registry under the Services key.

When the computer starts, it uses this entry to verify that the service or services listed in this value are started before attempting to start the dependent service.

1
ответ дан 2 December 2019 в 22:14

Для этого есть исправление. См.: http://support.microsoft.com/kb/922918

Дело в том, что службе может потребоваться ldap или другой удаленный доступ, и из-за этого возникают задержки. Особенно это может случиться при запуске сервера. Увеличивая задержку, вы можете гарантировать запуск службы.

Конечно, лучше было бы устранить неполадки, почему эта служба запускается так долго. Ваша среда не имеет большого размера? Есть ли у вас проблемы с производительностью службы, которая опрашивается службой, запуск которой задерживается?

3
ответ дан 2 December 2019 в 22:14

Попробуйте с этим:

Выполните следующую команду, чтобы определить триггерное событие, подходящее для Вашего окружение. В данном примере команда определяет, является ли IP-адрес адрес передается хосту, после чего сервис запускается или останавливается.

sc triggerinfo w32time start/networkon stop/networkoff

where w32Time is your service name

или попробуйте это

https://support.microsoft.com/en-us/kb/922918

0
ответ дан 2 December 2019 в 22:14

Теги

Похожие вопросы