# uname -a
OSF1 toddtest3.cats.ohiou.edu V5.0 1094 alpha


# mkdir /tmp/trace; cd /tmp/trace
# /usr/local/sbin/trace -P -f -O httpsd. /usr/local/apache-test/apache-1.3.12+ssl-1.42/bin/httpsdctl start
Warning: sysent[018] has syscall 229 getfsstat(pdd)d
Warning: sysent[067] has syscall 224 stat(sp)d
Warning: sysent[068] has syscall 225 lstat(sp)d
Warning: sysent[091] has syscall 226 fstat(dp)d
Warning: sysent[160] has syscall 227 statfs(spd)d
Warning: sysent[161] has syscall 228 fstatfs(dpd)d
/usr/local/apache-test/apache-1.3.12+ssl-1.42/bin/httpsdctl
Tracing process /proc/1282751
Launching... /usr/local/apache-test/apache-1.3.12+ssl-1.42/bin/gcache
pid=1282745
/usr/local/apache-test/apache-1.3.12+ssl-1.42/bin/httpsdctl start: httpsd started


# ls
httpsd.1282710  httpsd.1282745  httpsd.1282751  httpsd.1282755

--------------

Notes:

  httpsd.1282751 ==> httpsdctl (technically, /bin/sh)
  httpsd.1282710 ==> httpsd #1
  httpsd.1282745 ==> gcache 
  httpsd.1282755 ==> httpsd #2

  1) /bin/sh is executed, which runs the httpsdctl shell script
  2) httpsdctl forks off and execs httpsd #1.
  3) httpsd #1 loads all the apache modules without errors!
  4) httpsd #1 forks off and execs gcache.
  5) httpsd #1 forks off httpsd #2 (no exec).
  6) httpsd #2 loads some of the apache modules and fails!

