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
b1763710
Commit
b1763710
authored
May 06, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
periodically update firewall rules with pvestatd
parent
fde3cd1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
pvestatd
bin/pvestatd
+15
-0
No files found.
bin/pvestatd
View file @
b1763710
...
@@ -18,6 +18,7 @@ use PVE::OpenVZ;
...
@@ -18,6 +18,7 @@ use PVE::OpenVZ;
use
PVE::
RPCEnvironment
;
use
PVE::
RPCEnvironment
;
use
PVE::API2::
Subscription
;
use
PVE::API2::
Subscription
;
use
PVE::
AutoBalloon
;
use
PVE::
AutoBalloon
;
use
PVE::
Firewall
;
$SIG
{'
__WARN__
'}
=
sub
{
$SIG
{'
__WARN__
'}
=
sub
{
my
$err
=
$@
;
my
$err
=
$@
;
...
@@ -333,6 +334,13 @@ sub update_storage_status {
...
@@ -333,6 +334,13 @@ sub update_storage_status {
}
}
}
}
sub
update_pve_firewall
{
local
$SIG
{'
__WARN__
'}
=
'
IGNORE
';
# do not fill up logs
PVE::Firewall::
update
();
}
sub
update_status
{
sub
update_status
{
# update worker list. This is not really required and
# update worker list. This is not really required and
...
@@ -374,6 +382,13 @@ sub update_status {
...
@@ -374,6 +382,13 @@ sub update_status {
};
};
$err
=
$@
;
$err
=
$@
;
syslog
('
err
',
"
openvz console cleanup error:
$err
")
if
$err
;
syslog
('
err
',
"
openvz console cleanup error:
$err
")
if
$err
;
eval
{
update_pve_firewall
();
};
$err
=
$@
;
syslog
('
err
',
"
pve firewall update error:
$err
")
if
$err
;
}
}
my
$next_update
=
0
;
my
$next_update
=
0
;
...
...
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