In light of the recent defunct CPD issue, here's a script to restart CPD on Security Management, Endpoint Management, Multi-Domain management, and per-domain servers on an MDS.
This uses the same techniques as Check Point's own scripts to ensure the CPD process is detached and re-attached to cpwd for monitoring.
[Expert@cpmgmt01:0]# ./cpd_restart.sh -h
cpd_restart.sh: Restart CPD process on Multi-Domain server and Security/Endpoint management
Usage: ./cpd_restart.sh [ -d [ ALL | <specific domain server> ] | [ -h ]
Options:
d Specify a single domain management server (CMA) or special word ALL for all domain
servers listed in "mdsstat" output (Optional; only relevant for MDS)
h This help
If no argument is given, then the top level CPD process is restarted (for the MDS itself,
Security Management server, or Endpoint Management server)