[sheepdog] [PATCH] Set maximum number of open file descriptors to 32768

Vladislav Gorbunov vadikgo at gmail.com
Thu Jan 15 07:27:43 CET 2015


Signed-off-by: Vladislav Gorbunov <vadikgo at gmail.com>
---
 script/sheepdog.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/sheepdog.service.in b/script/sheepdog.service.in
index 1da6f37..ac4f955 100644
--- a/script/sheepdog.service.in
+++ b/script/sheepdog.service.in
@@ -7,7 +7,7 @@ Wants=syslog.target
 EnvironmentFile=- at SYSCONFDIR@/conf.d/sheepdog.conf
 EnvironmentFile=- at SYSCONFDIR@/sysconfig/sheepdog
 EnvironmentFile=- at SYSCONFDIR@/default/sheepdog
-ExecStart=/bin/sh -c '@SBINDIR@/sheep --pidfile @LOCALSTATEDIR@/run/sheep.pid $(if [ -z "$SHEEP_OPTS" ]; then echo "--cluster local --log dst=syslog --upgrade @LOCALSTATEDIR@/lib/sheepdog"; else echo $SHEEP_OPTS; fi)'
+ExecStart=/bin/sh -c 'ulimit -n 32768; @SBINDIR@/sheep --pidfile @LOCALSTATEDIR@/run/sheep.pid $(if [ -z "$SHEEP_OPTS" ]; then echo "--cluster local --log dst=syslog --upgrade @LOCALSTATEDIR@/lib/sheepdog"; else echo $SHEEP_OPTS; fi)'
 PIDFile=@LOCALSTATEDIR@/run/sheep.pid
 Type=forking
 Restart=on-abort
-- 
2.1.0




More information about the sheepdog mailing list