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
331c0fe6
Commit
331c0fe6
authored
Aug 25, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spelling errors
parent
bb56bde9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Nodes.pm
PVE/API2/Nodes.pm
+2
-2
pvectl
bin/pvectl
+1
-1
No files found.
PVE/API2/Nodes.pm
View file @
331c0fe6
...
...
@@ -1003,13 +1003,13 @@ my $create_stop_worker = sub {
if
(
$type
eq
'
openvz
')
{
return
if
!
PVE::OpenVZ::
check_running
(
$vmid
);
my
$timeout
=
defined
(
$down_timeout
)
?
int
(
$down_timeout
)
:
60
;
print
STDERR
"
Stoping CT
$vmid
(timeout =
$timeout
seconds)
\n
";
print
STDERR
"
Stop
p
ing CT
$vmid
(timeout =
$timeout
seconds)
\n
";
$upid
=
PVE::API2::
OpenVZ
->
vm_shutdown
({
node
=>
$nodename
,
vmid
=>
$vmid
,
timeout
=>
$timeout
,
forceStop
=>
1
});
}
elsif
(
$type
eq
'
qemu
')
{
return
if
!
PVE::QemuServer::
check_running
(
$vmid
,
1
);
my
$timeout
=
defined
(
$down_timeout
)
?
int
(
$down_timeout
)
:
60
*
3
;
print
STDERR
"
Stoping VM
$vmid
(timeout =
$timeout
seconds)
\n
";
print
STDERR
"
Stop
p
ing VM
$vmid
(timeout =
$timeout
seconds)
\n
";
$upid
=
PVE::API2::
Qemu
->
vm_shutdown
({
node
=>
$nodename
,
vmid
=>
$vmid
,
timeout
=>
$timeout
,
forceStop
=>
1
});
}
else
{
...
...
bin/pvectl
View file @
331c0fe6
...
...
@@ -132,7 +132,7 @@ __PACKAGE__->register_method ({
next
if
$vzlist
->
{
$vmid
}
->
{
status
}
ne
'
running
';
# not running
eval
{
print
STDERR
"
Stoping CT
$vmid
\n
";
print
STDERR
"
Stop
p
ing CT
$vmid
\n
";
# Set fairsched parameters to maximum so CT will stop fast
# ignore any errors
...
...
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