This both preserves the version of the binary that we ran (for interpreting
core files) and avoids any possibility of SIGBUS due to nfs lameness when
rarely used text pages get faulted back in.
chdir = /home/sage/ceph/src
restart on core dump = false
user = sage
- pre start command = "cp /home/sage/ceph/src/c$type /tmp/c$type.`date +%Y%m%d.%H%M%S`"
+; pre start command = "cp /home/sage/ceph/src/c$type /tmp/c$type.`date +%Y%m%d.%H%M%S`"
+ copy executable to = "/tmp/c$type.`date +%Y%m%d.%H%M%S`"
+ post start command = "echo 0x7f > /proc/\`pgrep c$type | head -1\`/coredump_filter"
+
; ---------------------
[mon]
check_host || continue
- cmd="$BINDIR/c$type -i $id"
+ # binary?
+ binary="$BINDIR/c$type"
+ if [ "$command" = "start" ]; then
+ get_conf copy_executable_to "" "copy executable to"
+ if [ -n "$copy_executable_to" ]; then
+ scp $binary "$host:$copy_executable_to"
+ binary="$copy_executable_to"
+ fi
+ fi
+
+ cmd="$binary -i $id"
# conf file
if [ "$host" = "$hostname" ]; then