Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: haproxy.sh,v 1.2 2014/04/27 01:28:01 rodent Exp $
# $NetBSD: haproxy.sh,v 1.3 2016/02/16 21:59:45 morr Exp $
#
# PROVIDE: haproxy
@@ -16,6 +16,7 @@ required_files="${conf_file}"
command_args="-f ${conf_file}"
extra_commands="configtest"
configtest_cmd="haproxy_configtest"
haproxy_fdlimit=${haproxy_fdlimit-"1024"}
haproxy_configtest()
{
@@ -26,5 +27,17 @@ haproxy_configtest()
${command} -c -f ${conf_file}
}
# A default limit of 64 (at least on NetBSD) may be too low for many people
SOFT_FDLIMIT=`ulimit -S -n`
HARD_FDLIMIT=`ulimit -H -n`
if [ ${haproxy_fdlimit} -gt ${SOFT_FDLIMIT} ]; then
if [ ${haproxy_fdlimit} -le ${HARD_FDLIMIT} ]; then
ulimit -S -n ${haproxy_fdlimit}
else
ulimit -S -n ${HARD_FDLIMIT}
fi
fi
load_rc_config $name
run_rc_command "$1"

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="@SMF_NAME@">
<service_bundle type="manifest" name="export">
<service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
<create_default_instance enabled="false" />
<single_instance />
@@ -19,7 +19,6 @@
<property_group name="application" type="application">
<propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/haproxy.cfg" />
</property_group>
<stability value="Evolving" />
<template>
<common_name>
<loctext xml:lang="C">HAProxy</loctext>