From acb4518a8cc6e0a2cf013f549e42c712e78b279a Mon Sep 17 00:00:00 2001 From: Igor Gajsin Date: Thu, 29 Sep 2016 15:38:41 +0300 Subject: [PATCH] add respawn to init scripts Change-Id: Ib92889c476b0007204d6b35c8cf589e88ca4cac8 --- .../puppet/modules/manila_auxiliary/templates/init.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployment_scripts/puppet/modules/manila_auxiliary/templates/init.erb b/deployment_scripts/puppet/modules/manila_auxiliary/templates/init.erb index 2c642ec..6ca8238 100644 --- a/deployment_scripts/puppet/modules/manila_auxiliary/templates/init.erb +++ b/deployment_scripts/puppet/modules/manila_auxiliary/templates/init.erb @@ -4,6 +4,10 @@ author "Igor Gajsin " 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 \ No newline at end of file + -- --config-file=/etc/manila/manila.conf --log-file=/var/log/manila/<%= @srv %>.log