add respawn to init scripts

Change-Id: Ib92889c476b0007204d6b35c8cf589e88ca4cac8
This commit is contained in:
Igor Gajsin 2016-09-29 15:38:41 +03:00
parent 45b8525b63
commit acb4518a8c
1 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@ author "Igor Gajsin <igajsin@mirantis.com>"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 20 5
limit nofile 65535 65535
chdir /var/run
pre-start script
@ -15,4 +19,4 @@ pre-start script
end script
exec start-stop-daemon --start --chuid manila --exec /usr/bin/<%= @srv %> \
-- --config-file=/etc/manila/manila.conf --log-file=/var/log/manila/<%= @srv %>.log
-- --config-file=/etc/manila/manila.conf --log-file=/var/log/manila/<%= @srv %>.log