From 46524b4543acc9d104d85136c0a4a9e006fc099c Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 10 May 2016 14:50:14 +0530 Subject: [PATCH] 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. Signed-off-by: Anoop C S Reviewed-by: Jose A. Rivera Reviewed-by: Guenther Deschner --- 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 00984d22fe8..4dd5b23ae7b 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 dff9cd8254a..af85b2c079a 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