Change 20491

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler committed this change into / under Review 20488
View Review
Download .zip
Fixed an environment insulation bug in init scripts.

More testing (and thinking) revealed that the only way to truly
provide a guarantee of insulation from user-set defaults in
~perforce/.bashrc (etc.) is to pass SDP_INSTANCE as a parameter to
the *_base scripts, so that the instance name is explicitly passed
into the su/exec call (when run as root).

This change also includes minor cleanup in init scripts and *_base
scripts.
  • Files 12
  • Comments 0
12 edited 0 added 0 deleted
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/p4broker_base#9
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/p4d_base#13
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/p4ftpd_base#8
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/p4p_base#9
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/p4web_base#8
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/p4broker_instance_init.template#13
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/p4d_instance_init.template#7
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/p4dtg_instance_init.template#6
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/p4ftpd_instance_init.template#7
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/p4p_instance_init.template#7
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/p4web_instance_init.template#7
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/etc/init.d/psm_init.template#4
Loading...
Tip: Use n and p to cycle through the changes.