diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/init.d | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/init.d b/debian/init.d index ecb2255f75d..417f7f2ee79 100644 --- a/debian/init.d +++ b/debian/init.d @@ -128,7 +128,15 @@ start_server() { ulimit -v unlimited ulimit -n 64000 ulimit -m unlimited - ulimit -u 32000 + + # In dash, ulimit takes -p for maximum user processes + # In bash, it's -u + if readlink /proc/$$/exe | grep -q dash + then + ulimit -p 32000 + else + ulimit -u 32000 + fi # Start the process using the wrapper start-stop-daemon --background --start --quiet --pidfile $PIDFILE \ |