SDP-427

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler created this job , modified by C. Thomas Tyler
Closed
Use systemd consistently if availabile for p4d start/stop.

The load_checkpoint.sh has logic to start using systemd if
available, else use the underlying init script directly.  We
need to get that logic to be used anywhere that p4d is started
or stopped.

That includes (at least):
* upgrade.sh
* configure_new_server.sh
* Somewhere in backup_functions.sh (in the routine called when
swapping dbs when doing checkpoint regeneration, which, while
not called by current scripts, should come back some day).
26401Added refresh_P4ROOT_from_offline_db.sh.

Updated backup_functions.sh to support functionality for db refresh.

Upgrade start_p4d() and stop_p4d() to use systemd if available, else
use the underlying SysV init scripts.

Updated verify_sdp.sh to be called from other scripts (sans
its own logging).  Added many checks to verify_sdp.sh to
support P4ROOT/offline_db swap.

Logic in P4ROOT/offline_db swap is more careful about what gets
swapped.

Added start_p4broker() and stop_p4broker() that behave similarly.

More shellcheck compliance.
26407Working around service stop reliability issue with systemd.
26400Added refresh_P4ROOT_from_offline_db.sh.

Updated backup_functions.sh to support functionality for db refresh.

Upgrade start_p4d() and stop_p4d() to use systemd if available, else
use the underlying SysV init scripts.

Updated verify_sdp.sh to be called from other scripts (sans
its own logging).  Added many checks to verify_sdp.sh to
support P4ROOT/offline_db swap.

Logic in P4ROOT/offline_db swap is more careful about what gets
swapped.

Added start_p4broker() and stop_p4broker() that behave similarly.

More shellcheck compliance.

#review-26401
26390Upgrade start_p4d() and stop_p4d() to use systemd if available, else
the standard init scripts.

Added start_p4broker and stop_p4broker that behave similarly.
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
C. Thomas Tyler
Reported Date
Modified By
C. Thomas Tyler
Modified Date
Owned By
tom_tyler
Dev Notes
Maybe enhance the existing start_p4d() routine in backup_functions,
and then make sure it is called everywhere.
Component
core-unix
Type
Feature