init: set core file size to unlimited by default
authorRaghavendra Talur <rtalur@redhat.com>
Mon, 2 May 2016 10:44:06 +0000 (16:14 +0530)
committerGünther Deschner <gd@samba.org>
Fri, 6 May 2016 17:15:17 +0000 (19:15 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11907

Signed-off-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jose A. Rivera <jarrpa@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri May  6 19:15:17 CEST 2016 on sn-devel-144

packaging/RHEL-CTDB/setup/smb.init
packaging/RHEL/setup/smb.init
packaging/systemd/smb.service

index 4dd5b23ae7bf2c92cd507d45f80e83cd70cf6314..00984d22fe8a95bd5dc2f70cebc168feff159f5b 100644 (file)
@@ -51,6 +51,7 @@ RETVAL=0
 start() {
        KIND="SMB"
        echo -n $"Starting $KIND services: "
+       ulimit -c unlimited
        daemon smbd $SMBDOPTIONS
        RETVAL=$?
        echo
index af85b2c079a6ff00caad691bc86bc017bb30d0d8..dff9cd8254ae6401410e1010c063600071ed1a1c 100644 (file)
@@ -50,6 +50,7 @@ RETVAL=0
 start() {
        KIND="SMB"
        echo -n $"Starting $KIND services: "
+       ulimit -c unlimited
        daemon smbd $SMBDOPTIONS
        RETVAL=$?
        echo
index 9810891e8c2ff240c73de245ba819e44741dd563..6053a5caaa5da2d1e3ba4785f529e671e991685b 100644 (file)
@@ -10,6 +10,7 @@ LimitNOFILE=16384
 EnvironmentFile=-/etc/sysconfig/samba
 ExecStart=/usr/sbin/smbd $SMBDOPTIONS
 ExecReload=/usr/bin/kill -HUP $MAINPID
+LimitCORE=infinity
 
 [Install]
 WantedBy=multi-user.target