malloc and start
This commit is contained in:
1 parent
e5b0609234
commit
bcb2dc838e
8 files changed
+66
-3
No files matched your search
@@ -56,6 +56,7 @@ rc_script="$ROOT/opnsense-plugin/www/rustproxy/src/etc/rc.d/rustproxy"
|
||||
model="$ROOT/opnsense-plugin/www/rustproxy/src/opnsense/mvc/app/models/OPNsense/RustProxy/RustProxy.xml"
|
||||
template="$ROOT/opnsense-plugin/www/rustproxy/src/opnsense/service/templates/OPNsense/RustProxy/rustproxy.conf"
|
||||
post_install="$ROOT/opnsense-plugin/www/rustproxy/+POST_INSTALL.pre"
|
||||
pre_deinstall="$ROOT/opnsense-plugin/www/rustproxy/+PRE_DEINSTALL.pre"
|
||||
|
||||
grep -q 'rustproxy_run_dir:="/var/run/rustproxy"' "$rc_script"
|
||||
grep -q 'rustproxy_user:="root"' "$rc_script"
|
||||
@@ -81,6 +82,15 @@ grep -q 'rustproxy_tls_port=' "$template"
|
||||
grep -q 'rustproxy_tls_listen_legacy=' "$template"
|
||||
grep -q 'root -g wheel' "$post_install"
|
||||
grep -q '/var/run/rustproxy' "$post_install"
|
||||
grep -q 'rustproxy_malloc_conf="${MALLOC_CONF:-narenas:2}"' "$rc_script"
|
||||
grep -q 'export MALLOC_CONF' "$rc_script"
|
||||
if grep -q 'MALLOC_ARENA_MAX' "$rc_script"; then
|
||||
# It may only appear in the explanatory FreeBSD comment, never as an export.
|
||||
! grep -Eq '(^|[[:space:]])(export[[:space:]]+)?MALLOC_ARENA_MAX=' "$rc_script"
|
||||
fi
|
||||
grep -q 'service.sh restart' "$post_install"
|
||||
grep -q 'onestop' "$pre_deinstall"
|
||||
grep -q 'service.sh status' "$ROOT/ci/build-release.sh"
|
||||
|
||||
# The generated command must never contain a literal listener ending in a colon
|
||||
# from model defaults/templates. rc.d rejects/falls back from malformed legacy
|
||||
|
||||
Reference in new issue
Block a user