Commit e9c31a4e authored by Dietmar Maurer's avatar Dietmar Maurer

remove all references to apache2

parent da342311
...@@ -17,7 +17,7 @@ use IO::File; ...@@ -17,7 +17,7 @@ use IO::File;
use base qw(PVE::RESTHandler); use base qw(PVE::RESTHandler);
my $service_list = { my $service_list = {
apache => { name => 'WWW', desc => 'Web/API server' }, pveproxy => { name => 'WWW', desc => 'Web/API server' },
postfix => { name => 'SMTP', desc => 'Simple Mail Tranfer Protocol' }, postfix => { name => 'SMTP', desc => 'Simple Mail Tranfer Protocol' },
ntpd => { name => 'NTP', desc => 'Network time protocol' }, ntpd => { name => 'NTP', desc => 'Network time protocol' },
sshd => { name => 'SSH', desc => 'Secure shell daemon' }, sshd => { name => 'SSH', desc => 'Secure shell daemon' },
...@@ -58,11 +58,9 @@ my $service_cmd = sub { ...@@ -58,11 +58,9 @@ my $service_cmd = sub {
} else { } else {
die "invalid service cmd '$service $cmd': ERROR"; die "invalid service cmd '$service $cmd': ERROR";
} }
} elsif ($service eq 'apache') { } elsif ($service eq 'pveproxy') {
if ($cmd eq 'restart') { if ($cmd eq 'restart') {
print "graceful apache restart\n"; $initd_cmd = '/etc/init.d/pveproxy';
$initd_cmd = '/usr/sbin/apache2ctl';
$cmd = 'graceful';
} else { } else {
die "invalid service cmd '$service $cmd': ERROR"; die "invalid service cmd '$service $cmd': ERROR";
} }
...@@ -109,8 +107,8 @@ my $service_state = sub { ...@@ -109,8 +107,8 @@ my $service_state = sub {
if ($service eq 'postfix') { if ($service eq 'postfix') {
$pid_file = '/var/spool/postfix/pid/master.pid'; $pid_file = '/var/spool/postfix/pid/master.pid';
} elsif ($service eq 'apache') { } elsif ($service eq 'pveproxy') {
$pid_file = '/var/run/apache2.pid'; $pid_file = '/var/run/pveproxy/pveproxy.pid';
} elsif ($service eq 'pvedaemon') { } elsif ($service eq 'pvedaemon') {
$pid_file = '/var/run/pvedaemon.pid'; $pid_file = '/var/run/pvedaemon.pid';
} elsif ($service eq 'pvecluster') { } elsif ($service eq 'pvecluster') {
......
...@@ -9,8 +9,6 @@ TODO: ...@@ -9,8 +9,6 @@ TODO:
- write a widget to render a JSON Schema (parameters, returns) - write a widget to render a JSON Schema (parameters, returns)
* use nginx/fastcgi instead of apache2 to save resources?
* impl. logfile search (like pmg tracking center) * impl. logfile search (like pmg tracking center)
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: pve-manager # Provides: pve-manager
# Required-Start: $remote_fs apache2 qemu-server +vz pvestatd # Required-Start: $remote_fs pveproxy qemu-server +vz pvestatd
# Required-Stop: $remote_fs apache2 qemu-server +vz pvestatd # Required-Stop: $remote_fs pveproxy qemu-server +vz pvestatd
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: PVE VM Manager # Short-Description: PVE VM Manager
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
# Provides: pvedaemon # Provides: pvedaemon
# Required-Start: $remote_fs $network $syslog pve-cluster cman clvm # Required-Start: $remote_fs $network $syslog pve-cluster cman clvm
# Required-Stop: $remote_fs $network $syslog pve-cluster cman clvm # Required-Stop: $remote_fs $network $syslog pve-cluster cman clvm
# X-Start-Before: apache2
# X-Stop-After: apache2
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: PVE Daemon # Short-Description: PVE Daemon
......
...@@ -81,7 +81,7 @@ Ext.define('PVE.node.ServiceView', { ...@@ -81,7 +81,7 @@ Ext.define('PVE.node.ServiceView', {
} }
var service = rec.data.service; var service = rec.data.service;
var state = rec.data.state; var state = rec.data.state;
if (service == 'apache' || if (service == 'pveproxy' ||
service == 'pvecluster' || service == 'pvecluster' ||
service == 'pvedaemon') { service == 'pvedaemon') {
if (state == 'running') { if (state == 'running') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment