Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
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
Kulya
OpnSense
Commits
918df6ea
Commit
918df6ea
authored
Feb 21, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: finish rework by removing last custom glue
parent
d03b53b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
gwlb.inc
src/etc/inc/gwlb.inc
+6
-0
services.inc
src/etc/inc/services.inc
+2
-0
vslb.inc
src/etc/inc/vslb.inc
+4
-0
status_services.php
src/www/status_services.php
+2
-12
No files found.
src/etc/inc/gwlb.inc
View file @
918df6ea
...
...
@@ -42,6 +42,12 @@ function return_apinger_defaults()
);
}
function
setup_gateways_monitor_full
()
{
killbypid
(
'/var/run/apinger.pid'
);
setup_gateways_monitor
();
}
/*
* Creates monitoring configuration file and
* adds appropriate static routes.
...
...
src/etc/inc/services.inc
View file @
918df6ea
...
...
@@ -2588,6 +2588,7 @@ function services_get()
$pconfig
=
array
();
$pconfig
[
'name'
]
=
"apinger"
;
$pconfig
[
'description'
]
=
gettext
(
"Gateway Monitoring Daemon"
);
$pconfig
[
'php'
][
'restart'
]
=
array
(
'setup_gateways_monitor_full'
);
$pconfig
[
'php'
][
'start'
]
=
array
(
'setup_gateways_monitor'
);
$pconfig
[
'pidfile'
]
=
'/var/run/apinger.pid'
;
$services
[]
=
$pconfig
;
...
...
@@ -2668,6 +2669,7 @@ function services_get()
$pconfig
=
array
();
$pconfig
[
'name'
]
=
"relayd"
;
$pconfig
[
'description'
]
=
gettext
(
"Server load balancing daemon"
);
$pconfig
[
'php'
][
'restart'
]
=
array
(
'relayd_configure_full'
,
'filter_configure'
);
$pconfig
[
'php'
][
'start'
]
=
array
(
'relayd_configure'
,
'filter_configure'
);
$services
[]
=
$pconfig
;
}
...
...
src/etc/inc/vslb.inc
View file @
918df6ea
...
...
@@ -125,6 +125,10 @@ class SendMonitor extends Monitor {
}
}
function
relady_configure_full
()
{
relayd_configure
(
true
);
}
function
relayd_configure
(
$kill_first
=
false
)
{
...
...
src/www/status_services.php
View file @
918df6ea
...
...
@@ -141,18 +141,8 @@ function service_control_restart($name, $extras)
{
$msg
=
sprintf
(
gettext
(
"%s has been restarted."
),
htmlspecialchars
(
$name
));
/* XXX clean this up */
switch
(
$name
)
{
case
'apinger'
:
killbypid
(
"/var/run/apinger.pid"
);
setup_gateways_monitor
();
return
$msg
;
case
'relayd'
:
relayd_configure
(
true
);
filter_configure
();
return
$msg
;
default
:
break
;
if
(
$name
==
'openvpn'
)
{
$filter
[
'vpnid'
]
=
$extras
[
'id'
];
}
$service
=
find_service_by_name
(
$name
);
...
...
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