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
ebf076e1
Commit
ebf076e1
authored
Feb 20, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serivce: need another type for command launcher
(cherry picked from commit
6f2daad5
)
parent
f54cf1cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
services.inc
src/etc/inc/services.inc
+3
-0
status_services.php
src/www/status_services.php
+7
-4
No files found.
src/etc/inc/services.inc
View file @
ebf076e1
...
...
@@ -2709,6 +2709,9 @@ function services_get()
$services
[]
=
array
(
'description'
=>
gettext
(
'System Configuration Daemon'
),
'pidfile'
=>
'/var/run/configd.pid'
,
'mwexec'
=>
array
(
'start'
=>
array
(
'/usr/local/etc/rc.d/configd start'
),
),
'name'
=>
'configd'
,
);
...
...
src/www/status_services.php
View file @
ebf076e1
...
...
@@ -102,6 +102,12 @@ function service_control_start($name, $extras)
}
/* XXX fall through later */
return
sprintf
(
gettext
(
'%s has been started via php.'
),
htmlspecialchars
(
$name
));
}
elseif
(
isset
(
$service
[
'mwexec'
][
'start'
]))
{
foreach
(
$service
[
'mwexec'
][
'start'
]
as
$cmd
)
{
mwexec
(
$cmd
);
}
/* XXX fall through later */
return
sprintf
(
gettext
(
'%s has been started via mwexec.'
),
htmlspecialchars
(
$name
));
}
/* XXX migrate all of those */
...
...
@@ -149,9 +155,6 @@ function service_control_start($name, $extras)
case
'suricata'
:
configd_run
(
"ids start"
);
break
;
case
'configd'
:
mwexec
(
'/usr/local/etc/rc.d/configd start'
);
break
;
case
'captiveportal'
:
configd_run
(
"captiveportal start"
);
break
;
...
...
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