Skip to content

Commit 67daa16

Browse files
author
Alex Harford
committed
Add a switch to control writing to /proc/sys
Not all environments allow writing to /proc/sys, allow these to be controlled via config setting.
1 parent af84052 commit 67daa16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bosh-templates/cloud_controller_api_ctl.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ case $1 in
6868
# Configure the core file location
6969
mkdir -p /var/vcap/sys/cores
7070
chown vcap:vcap /var/vcap/sys/cores
71-
echo /var/vcap/sys/cores/core-%e-%s-%p-%t > /proc/sys/kernel/core_pattern
71+
<% if p("cc.tweak_proc_sys") %>
72+
echo /var/vcap/sys/cores/core-%e-%s-%p-%t > /proc/sys/kernel/core_pattern
73+
<% end %>
7274

7375
ulimit -c unlimited
7476

0 commit comments

Comments
 (0)