[pve-devel] r5518 - pve-manager/pve2/lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Feb 14 07:15:34 CET 2011


Author: dietmar
Date: 2011-02-14 07:15:34 +0100 (Mon, 14 Feb 2011)
New Revision: 5518

Modified:
   pve-manager/pve2/lib/PVE/API2/Services.pm
Log:
add corosync service


Modified: pve-manager/pve2/lib/PVE/API2/Services.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/Services.pm	2011-02-11 12:56:32 UTC (rev 5517)
+++ pve-manager/pve2/lib/PVE/API2/Services.pm	2011-02-14 06:15:34 UTC (rev 5518)
@@ -17,13 +17,14 @@
 use base qw(PVE::RESTHandler);
 
 my $service_list = {
-    apache => { name => 'WWW', desc => 'Web Server' },
+    apache => { name => 'WWW', desc => 'Web/API server' },
     postfix => { name => 'SMTP', desc => 'Simple Mail Tranfer Protocol' },
-    ntpd => { name => 'NTP', desc => 'Network Time Protocol' },
-    sshd => { name => 'SSH', desc => 'Secure Shell Daemon' },
-    syslog => { name => 'Syslog', desc => 'Syslog Daemon' },
+    ntpd => { name => 'NTP', desc => 'Network time protocol' },
+    sshd => { name => 'SSH', desc => 'Secure shell daemon' },
+    syslog => { name => 'Syslog', desc => 'Syslog daemon' },
     cron => { name => 'CRON', desc => 'Daemon to execute scheduled commands' },
-    pvedaemon => { name => 'NodeManager', desc => 'PVE Node Manager Daemon' },
+    pvedaemon => { name => 'NodeManager', desc => 'PVE node manager daemon' },
+    corosync => { name => 'Corosync', desc => 'Corosync cluster daemon' },
 };
 
 my $service_cmd = sub {
@@ -71,6 +72,8 @@
 	$initd_cmd = '/etc/init.d/rsyslog';
     } elsif  ($service eq 'cron') {
 	$initd_cmd = '/etc/init.d/cron';
+    } elsif  ($service eq 'corosync') {
+	$initd_cmd = '/etc/init.d/cman';
     } elsif  ($service eq 'sshd') {
 	$initd_cmd = '/etc/init.d/ssh';
     } else {
@@ -97,6 +100,8 @@
 	$pid_file = '/var/run/sshd.pid';
     } elsif  ($service eq 'cron') {
 	$pid_file = '/var/run/crond.pid';
+    } elsif  ($service eq 'corosync') {
+	$pid_file = '/var/run/corosync.pid';
     } elsif  ($service eq 'syslog') {
 	$pid_file = '/var/run/rsyslogd.pid';
     } else {



More information about the pve-devel mailing list