Restart cpanel and web hosting manager WHM

Both of these restart cpanel and Web Host Manager WHM services the exact same way

service cpanel restart

/etc/init.d/cpanel restart