packaging: Remove ulimit usage for setting core file size limit
authorAnoop C S <anoopcs@redhat.com>
Tue, 10 May 2016 09:20:14 +0000 (14:50 +0530)
committerGünther Deschner <gd@samba.org>
Wed, 18 May 2016 13:50:13 +0000 (15:50 +0200)
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 <anoopcs@redhat.com>
Reviewed-by: Jose A. Rivera <jarrpa@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
packaging/RHEL-CTDB/setup/smb.init
packaging/RHEL/setup/smb.init

index 00984d22fe8a95bd5dc2f70cebc168feff159f5b..4dd5b23ae7bf2c92cd507d45f80e83cd70cf6314 100644 (file)
@@ -51,7 +51,6 @@ RETVAL=0
 start() {
        KIND="SMB"
        echo -n $"Starting $KIND services: "
-       ulimit -c unlimited
        daemon smbd $SMBDOPTIONS
        RETVAL=$?
        echo
index dff9cd8254ae6401410e1010c063600071ed1a1c..af85b2c079a6ff00caad691bc86bc017bb30d0d8 100644 (file)
@@ -50,7 +50,6 @@ RETVAL=0
 start() {
        KIND="SMB"
        echo -n $"Starting $KIND services: "
-       ulimit -c unlimited
        daemon smbd $SMBDOPTIONS
        RETVAL=$?
        echo