summaryrefslogtreecommitdiffstats
path: root/source/n/openssh/rc.sshd
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/openssh/rc.sshd')
-rw-r--r--source/n/openssh/rc.sshd7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/n/openssh/rc.sshd b/source/n/openssh/rc.sshd
index 2da2ab307..eea6c6a74 100644
--- a/source/n/openssh/rc.sshd
+++ b/source/n/openssh/rc.sshd
@@ -1,6 +1,11 @@
#!/bin/sh
# Start/stop/restart the secure shell server:
+# Source options
+if [ -r /etc/default/sshd ]; then
+ . /etc/default/sshd
+fi
+
sshd_start() {
# Create host keys if needed.
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
@@ -18,7 +23,7 @@ sshd_start() {
# Catch any new host key types not yet created above:
/usr/bin/ssh-keygen -A
# Start the sshd daemon:
- /usr/sbin/sshd
+ /usr/sbin/sshd $SSHD_OPTS
}
sshd_stop() {