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
52131f1d
Commit
52131f1d
authored
Mar 18, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openssh: several fixes for previous #1480
parent
b3c76778
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
openssh.inc
src/etc/inc/plugins.inc.d/openssh.inc
+2
-2
actions_openssh.conf
src/opnsense/service/conf/actions.d/actions_openssh.conf
+1
-1
No files found.
src/etc/inc/plugins.inc.d/openssh.inc
100755 → 100644
View file @
52131f1d
#!/usr/local/bin/php
<?php
<?php
/*
/*
...
@@ -45,11 +44,12 @@ function openssh_services()
...
@@ -45,11 +44,12 @@ function openssh_services()
if
(
isset
(
$config
[
'system'
][
'ssh'
][
'enabled'
]))
{
if
(
isset
(
$config
[
'system'
][
'ssh'
][
'enabled'
]))
{
$pconfig
=
array
();
$pconfig
=
array
();
$pconfig
[
'name'
]
=
'openssh'
;
$pconfig
[
'description'
]
=
gettext
(
'Secure Shell Daemon'
);
$pconfig
[
'description'
]
=
gettext
(
'Secure Shell Daemon'
);
$pconfig
[
'configd'
][
'restart'
]
=
array
(
'openssh restart'
);
$pconfig
[
'configd'
][
'restart'
]
=
array
(
'openssh restart'
);
$pconfig
[
'configd'
][
'start'
]
=
array
(
'openssh start'
);
$pconfig
[
'configd'
][
'start'
]
=
array
(
'openssh start'
);
$pconfig
[
'configd'
][
'stop'
]
=
array
(
'openssh stop'
);
$pconfig
[
'configd'
][
'stop'
]
=
array
(
'openssh stop'
);
$pconfig
[
'pidfile'
]
=
'/var/run/sshd.pid'
;
$pconfig
[
'name'
]
=
'openssh'
;
$services
[]
=
$pconfig
;
$services
[]
=
$pconfig
;
}
}
...
...
src/opnsense/service/conf/actions.d/actions_openssh.conf
View file @
52131f1d
...
@@ -11,7 +11,7 @@ type:script
...
@@ -11,7 +11,7 @@ type:script
message
:
restarting
openssh
message
:
restarting
openssh
[
stop
]
[
stop
]
command
:/
bin
/
pkill
-
af
/
usr
/
local
/
sbin
/
sshd
||
exit
0
command
:/
bin
/
pkill
-
TERM
sshd
||
exit
0
parameters
:
parameters
:
type
:
script
type
:
script
message
:
stopping
openssh
message
:
stopping
openssh
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