pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

zabbix50-server: Set stack limit to 10MB to avoid crash on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Juraj Lutter <otis%NetBSD.org@localhost>
Pushed By:	otis
Date:		Thu Sep 10 09:57:32 2020 +0000
Changeset:	dc3af33de5d67ed62593bcc54daa11414579d312

Modified Files:
	zabbix50-server/files/zabbix_server.sh

Log Message:
zabbix50-server: Set stack limit to 10MB to avoid crash on NetBSD

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dc3af33de5d67ed62593bcc54daa11414579d312

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 zabbix50-server/files/zabbix_server.sh | 2 ++
 1 file changed, 2 insertions(+)

diffs:
diff --git a/zabbix50-server/files/zabbix_server.sh b/zabbix50-server/files/zabbix_server.sh
index 3291fd5de1..ec20837cb3 100644
--- a/zabbix50-server/files/zabbix_server.sh
+++ b/zabbix50-server/files/zabbix_server.sh
@@ -13,6 +13,7 @@ fi
 
 name="zabbix_server"
 rcvar=${name}
+start_precmd="ulimit -s 10240"
 command="@PREFIX@/sbin/${name}"
 required_files="@PKG_SYSCONFDIR@/${name}.conf"
 
@@ -21,5 +22,6 @@ if [ -f /etc/rc.subr ]; then
 	run_rc_command "$1"
 else
 	@ECHO@ -n " ${name}"
+	[ "x$1" = "start" ] && ulimit -s 10240
 	${command} ${command_args}
 fi


Home | Main Index | Thread Index | Old Index