Commit 52131f1d authored by Franco Fichtner's avatar Franco Fichtner

openssh: several fixes for previous #1480

parent b3c76778
#!/usr/local/bin/php
<?php
/*
......@@ -45,11 +44,12 @@ function openssh_services()
if (isset($config['system']['ssh']['enabled'])) {
$pconfig = array();
$pconfig['name'] = 'openssh';
$pconfig['description'] = gettext('Secure Shell Daemon');
$pconfig['configd']['restart'] = array('openssh restart');
$pconfig['configd']['start'] = array('openssh start');
$pconfig['configd']['stop'] = array('openssh stop');
$pconfig['pidfile'] = '/var/run/sshd.pid';
$pconfig['name'] = 'openssh';
$services[] = $pconfig;
}
......
......@@ -11,7 +11,7 @@ type:script
message:restarting openssh
[stop]
command:/bin/pkill -af /usr/local/sbin/sshd || exit 0
command:/bin/pkill -TERM sshd || exit 0
parameters:
type:script
message:stopping openssh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment