Use systemctl instead of service

This commit is contained in:
vishesh92 2026-04-09 16:44:20 +05:30
parent c0572d7992
commit b7159ba0df
No known key found for this signature in database
GPG Key ID: 4E395186CBFA790B
1 changed files with 2 additions and 2 deletions

View File

@ -323,8 +323,8 @@ public class CAManagerImpl extends ManagerBase implements CAManager {
provisionCertificateViaSsh(sshConnection, hostIp, host.getName(), caProvider);
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo service libvirtd restart");
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo service cloudstack-agent restart");
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo systemctl restart libvirtd");
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo systemctl restart cloudstack-agent");
return true;
} catch (Exception e) {