forum.bitel.ru http://forum.bitel.ru/ |
|
insserv и BGBilling http://forum.bitel.ru/viewtopic.php?f=22&t=5038 |
Страница 1 из 1 |
Автор: | borin [ 28 янв 2011, 15:53 ] |
Заголовок сообщения: | insserv и BGBilling |
В Debian Squeeze, есть такая плюшка как insserv, позволяет оптимизировать запуск сервисов, включена по умолчанию. Ну и соответственно модернизирую скрипты bgbilling bgcommonrc bgdataloader bgscheduler. bgbilling Код: ### BEGIN INIT INFO # Provides: bgbilling # Required-Start: mysql activemq # Required-Stop: mysql activemq # Default-Start: 2 # Default-Stop: 0 1 3 4 5 6 # Description: Start BGBilling ### END INIT INFO bgcommonrc Код: ### BEGIN INIT INFO # Provides: bgcommonrc # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: # Description: ### END INIT INFO bgdataloader Код: ### BEGIN INIT INFO # Provides: bgdataloader # Required-Start: mysql bgbilling # Required-Stop: mysql bgbilling # Default-Start: 2 # Default-Stop: # Description: Start bgdataloader ### END INIT INFO bgscheduler Код: ### BEGIN INIT INFO # Provides: bgscheduler # Required-Start: bgbilling # Required-Stop: bgbilling # Default-Start: 2 # Default-Stop: # Description: Start bgscheduler ### END INIT INFO Проблема в скрипт bgdataloader, mysql успевает остановиться раньше чем bgdataloader, соответственно имеем висящий сервер, но стоит прибить процесс bgdataloader все нормально перезагружается. Ну или в ручную гасить bgdataloader перед перезагрузкой. Где косяк не пойму, вроде в Required-Stop указано что mysql должен робить перед остановкой сервиса и останавливаться последним. |
Автор: | borin [ 28 янв 2011, 16:30 ] |
Заголовок сообщения: | Re: insserv и BGBilling |
Ну как всегда сам дурак, уровни не правильно прописал.... Код: cat bgbilling
#!/bin/bash ### BEGIN INIT INFO # Provides: bgbilling # Required-Start: mysql activemq # Required-Stop: mysql activemq # Default-Start: 2 # Default-Stop: 0 6 # Description: Start BGBilling ### END INIT INFO cat bgcommonrc #!/bin/bash ### BEGIN INIT INFO # Provides: bgcommonrc # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: # Description: ### END INIT INFO cat bgdataloader #!/bin/bash ### BEGIN INIT INFO # Provides: bgdataloader # Required-Start: bgbilling # Required-Stop: bgbilling # Default-Start: 2 # Default-Stop: 0 6 # Description: Start bgdataloader ### END INIT INFO cat bgscheduler #!/bin/bash ### BEGIN INIT INFO # Provides: bgscheduler # Required-Start: bgbilling # Required-Stop: bgbilling # Default-Start: 2 # Default-Stop: 0 6 # Description: Start bgscheduler ### END INIT INFO |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |