Change 20348

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler committed this change into / under Review 20344
View Review
Download .zip
Use pid to shutdown the p4d process.

Goals:
1. Make shutdown more standard using kill/SIGTERM.
2. Make shutdown more reliable; no need to be logged in, insluated from P4AUTH, etc.
3. Use the now-built-in pid mechanism.
4. On shutdown, make it so the script doesn't return until the p4d process is well
and truly down.

This was implemented with some backward-compatibilty features to simplfy SDP
upgrades:
1. Though the p4_N.vars file should add the required '--pid-flag' to P4D_FLAGS,
this new p4d_base checks and adds it if it is missing.
2. The old 'p4 admin stop' logic is retained as a new 'admin_stop' function, and
is used if the server.pid file does not exist when stop is called.
  • Files 2
  • Comments 0
2 edited 0 added 0 deleted
guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/p4d_base#11
Loading...
guest/perforce_software/sdp/dev/Server/Unix/p4/common/config/instance_vars.template#15
Loading...
Tip: Use n and p to cycle through the changes.