Skip to content

Commit a200f85

Browse files
committed
Use systemctl instead of service
1 parent ef2c484 commit a200f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/apache/cloudstack/ca/CAManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ private boolean provisionKvmHostViaSsh(Host host, String caProvider) {
323323

324324
provisionCertificateViaSsh(sshConnection, hostIp, host.getName(), caProvider);
325325

326-
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo service libvirtd restart");
327-
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo service cloudstack-agent restart");
326+
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo systemctl restart libvirtd");
327+
SSHCmdHelper.sshExecuteCmd(sshConnection, "sudo systemctl restart cloudstack-agent");
328328

329329
return true;
330330
} catch (Exception e) {

0 commit comments

Comments
 (0)