airpwn / sams2

Automatically exported from code.google.com/p/sams2
GNU General Public License v2.0
0 stars 0 forks source link

Проблема в init скрипте debian/ init.d #597

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
# Should-Start:         $named $mysql $squid
Необходимо заменить на
# Should-Start:         named mysql squid

В первом варианте update-rc.d не воспринимает 
имена сервисов и ставит скрипт в 
последовательность загрузки одним из 
первых. В результате mysql еще не запущен и 
samsdaemon не стартует вообще.

Original issue reported on code.google.com by kif...@gmail.com on 15 May 2013 at 1:21

GoogleCodeExporter commented 9 years ago
ubuntu 12.04.LTS такая же проблема, но данное 
решение не помогло. Сделал временное 
решение написал простой upstart 
конфигурационный файл для Sams типа этого:
%
#  sams - Squid Account Management System (SAMS)
description     "Squid Account Management System"
author          "Denyaka10"

# The second "or" condition is to start squid in case it failed to start
# because no real interface was there.
start on runlevel [2345]
stop on runlevel [!2345]

start on (started mysql and started squid3)

pre-start script
        /etc/init.d/sams2 start
end script

post-stop script
        /etc/init.d/sams2 stop
end script

Original comment by Denyak...@gmail.com on 27 May 2013 at 12:59