SDP-88

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler created this job , modified by super-tom_tyler
Closed
Use pid to shutdown p4d rather than 'p4 admin stop' to enhance reliability.
20348Use 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.
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
C. Thomas Tyler
Reported Date
Modified By
super-tom_tyler
Modified Date
Owned By
tom_tyler
Dev Notes
This job, SDP-88, was originally named job000578.
Type
Feature