From 2e23b690dada2b5920c29a15f95b7c9e12ff517c Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 10 May 2016 14:50:14 +0530 Subject: [PATCH 3/5] packaging: Remove ulimit usage for setting core file size limit Recent commit ebd139c4db7e51a2d7843a773991f15cadf504dd modified smb.init to set core file size to 'unlimited' by default using the ulimit command. But when smb and winbind services are initiated via sysv init scripts, another variable named DAEMON_COREFILE_LIMIT takes higher priority in deciding the core file size. Therefore setting default value using ulimit command is useless. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11907 Signed-off-by: Anoop C S Reviewed-by: Jose A. Rivera Reviewed-by: Guenther Deschner (cherry picked from commit 46524b4543acc9d104d85136c0a4a9e006fc099c) --- packaging/RHEL-CTDB/setup/smb.init | 1 - packaging/RHEL/setup/smb.init | 1 - 2 files changed, 2 deletions(-) diff --git a/packaging/RHEL-CTDB/setup/smb.init b/packaging/RHEL-CTDB/setup/smb.init index 00984d2..4dd5b23 100644 --- a/packaging/RHEL-CTDB/setup/smb.init +++ b/packaging/RHEL-CTDB/setup/smb.init @@ -51,7 +51,6 @@ RETVAL=0 start() { KIND="SMB" echo -n $"Starting $KIND services: " - ulimit -c unlimited daemon smbd $SMBDOPTIONS RETVAL=$? echo diff --git a/packaging/RHEL/setup/smb.init b/packaging/RHEL/setup/smb.init index dff9cd8..af85b2c 100644 --- a/packaging/RHEL/setup/smb.init +++ b/packaging/RHEL/setup/smb.init @@ -50,7 +50,6 @@ RETVAL=0 start() { KIND="SMB" echo -n $"Starting $KIND services: " - ulimit -c unlimited daemon smbd $SMBDOPTIONS RETVAL=$? echo -- 2.5.5