Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
e9c31a4e
Commit
e9c31a4e
authored
Apr 16, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove all references to apache2
parent
da342311
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
14 deletions
+8
-14
Services.pm
PVE/API2/Services.pm
+5
-7
README
README
+0
-2
pve-manager
bin/init.d/pve-manager
+2
-2
pvedaemon
bin/init.d/pvedaemon
+0
-2
ServiceView.js
www/manager/node/ServiceView.js
+1
-1
No files found.
PVE/API2/Services.pm
View file @
e9c31a4e
...
...
@@ -17,7 +17,7 @@ use IO::File;
use
base
qw(PVE::RESTHandler)
;
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
'
},
ntpd
=>
{
name
=>
'
NTP
',
desc
=>
'
Network time protocol
'
},
sshd
=>
{
name
=>
'
SSH
',
desc
=>
'
Secure shell daemon
'
},
...
...
@@ -58,11 +58,9 @@ my $service_cmd = sub {
}
else
{
die
"
invalid service cmd '
$service
$cmd
': ERROR
";
}
}
elsif
(
$service
eq
'
apache
')
{
}
elsif
(
$service
eq
'
pveproxy
')
{
if
(
$cmd
eq
'
restart
')
{
print
"
graceful apache restart
\n
";
$initd_cmd
=
'
/usr/sbin/apache2ctl
';
$cmd
=
'
graceful
';
$initd_cmd
=
'
/etc/init.d/pveproxy
';
}
else
{
die
"
invalid service cmd '
$service
$cmd
': ERROR
";
}
...
...
@@ -109,8 +107,8 @@ my $service_state = sub {
if
(
$service
eq
'
postfix
')
{
$pid_file
=
'
/var/spool/postfix/pid/master.pid
';
}
elsif
(
$service
eq
'
apache
')
{
$pid_file
=
'
/var/run/
apache2
.pid
';
}
elsif
(
$service
eq
'
pveproxy
')
{
$pid_file
=
'
/var/run/
pveproxy/pveproxy
.pid
';
}
elsif
(
$service
eq
'
pvedaemon
')
{
$pid_file
=
'
/var/run/pvedaemon.pid
';
}
elsif
(
$service
eq
'
pvecluster
')
{
...
...
README
View file @
e9c31a4e
...
...
@@ -9,8 +9,6 @@ TODO:
- 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)
...
...
bin/init.d/pve-manager
View file @
e9c31a4e
...
...
@@ -2,8 +2,8 @@
### BEGIN INIT INFO
# Provides: pve-manager
# Required-Start: $remote_fs
apache2
qemu-server +vz pvestatd
# Required-Stop: $remote_fs
apache2
qemu-server +vz pvestatd
# Required-Start: $remote_fs
pveproxy
qemu-server +vz pvestatd
# Required-Stop: $remote_fs
pveproxy
qemu-server +vz pvestatd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PVE VM Manager
...
...
bin/init.d/pvedaemon
View file @
e9c31a4e
...
...
@@ -4,8 +4,6 @@
# Provides: pvedaemon
# Required-Start: $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-Stop: 0 1 6
# Short-Description: PVE Daemon
...
...
www/manager/node/ServiceView.js
View file @
e9c31a4e
...
...
@@ -81,7 +81,7 @@ Ext.define('PVE.node.ServiceView', {
}
var
service
=
rec
.
data
.
service
;
var
state
=
rec
.
data
.
state
;
if
(
service
==
'
apache
'
||
if
(
service
==
'
pveproxy
'
||
service
==
'
pvecluster
'
||
service
==
'
pvedaemon
'
)
{
if
(
state
==
'
running
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment