зеркало из https://github.com/mozilla/mig.git
[doc] upstart conf for api and scheduler, take 2
This commit is contained in:
Родитель
cd573aa6ef
Коммит
6c53847a66
|
@ -0,0 +1,21 @@
|
|||
# Mozilla InvestiGator API
|
||||
|
||||
description "MIG API"
|
||||
|
||||
start on filesystem or runlevel [2345]
|
||||
stop on runlevel [!2345]
|
||||
|
||||
setuid mig
|
||||
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
umask 022
|
||||
|
||||
console none
|
||||
|
||||
pre-start script
|
||||
test /opt/mig-api || { stop; exit 0; }
|
||||
end script
|
||||
|
||||
# Start
|
||||
exec /opt/mig-api
|
|
@ -0,0 +1,22 @@
|
|||
# Mozilla InvestiGator Scheduler
|
||||
|
||||
description "MIG Scheduler"
|
||||
|
||||
start on filesystem or runlevel [2345]
|
||||
stop on runlevel [!2345]
|
||||
|
||||
setuid mig
|
||||
limit nofile 640000 640000
|
||||
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
umask 022
|
||||
|
||||
console none
|
||||
|
||||
pre-start script
|
||||
test /opt/mig-scheduler || { stop; exit 0; }
|
||||
end script
|
||||
|
||||
# Start
|
||||
exec /opt/mig-scheduler
|
Загрузка…
Ссылка в новой задаче