tweaks for debian system vm

This commit is contained in:
Chiradeep Vittal 2010-09-27 18:04:42 -07:00
parent 0e5469340c
commit f1b0e4b811
3 changed files with 4 additions and 4 deletions

View File

@ -431,7 +431,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
private void startAdditionalServices() {
Script command = new Script("/bin/bash", s_logger);
command.add("-c");
command.add("service sshd restart ");
command.add("if [ -f /etc/init.d/ssh ]; then service ssh restart; else service sshd restart; fi ");
String result = command.execute();
if (result != null) {
s_logger.warn("Error in starting sshd service err=" + result );

View File

@ -853,7 +853,7 @@ public class DownloadManagerImpl implements DownloadManager {
Script command = new Script("/bin/bash", s_logger);
command.add("-c");
command.add("service httpd stop ");
command.add("if [ -d /etc/apache2 ] ; then service apache2 stop; else service httpd stop; fi ");
String result = command.execute();
if (result != null) {
s_logger.warn("Error in stopping httpd service err=" + result );
@ -883,7 +883,7 @@ public class DownloadManagerImpl implements DownloadManager {
command = new Script("/bin/bash", s_logger);
command.add("-c");
command.add("service httpd start ");
command.add("if [ -d /etc/apache2 ] ; then service apache2 start; else service httpd start; fi ");
result = command.execute();
if (result != null) {
s_logger.warn("Error in starting httpd service err=" + result );

View File

@ -140,7 +140,7 @@ public class DownloadMonitorImpl implements DownloadMonitor {
_sslCopy = Boolean.parseBoolean(configs.get("secstorage.encrypt.copy"));
String cert = configs.get("secstorage.secure.copy.cert");
if ("realhostip.com".equalsIgnoreCase(cert)) {
if (!"realhostip.com".equalsIgnoreCase(cert)) {
s_logger.warn("Only realhostip.com ssl cert is supported, ignoring self-signed and other certs");
}