RHL init.d/sshd ipv6 hack
Pekka Savola
pekkas at netcore.fi
Thu Apr 26 01:07:17 EST 2001
Hello all,
I'm using the attached patch.
With it, if you add
OPTIONS="-6"
in
/etc/sysconfig/sshd
(this kind of sysconfig/<name> is a pretty normal RHL practice), then you
can enable ipv4 and ipv6 on RHL without problems and without having to
modify the init.d/sshd script.
This or something like should IMO be added.
Removing 'noreplace' from sshd_config definition in openssh.spec should
also be considered.
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
-------------- next part --------------
--- contrib/redhat/sshd.init.orig Wed Feb 28 02:21:22 2001
+++ contrib/redhat/sshd.init Wed Apr 25 18:00:53 2001
@@ -15,6 +15,8 @@
# source function library
. /etc/rc.d/init.d/functions
+[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
+
RETVAL=0
# Some functions to make the below more readable
@@ -104,7 +106,7 @@
echo -n "Starting sshd: "
if [ ! -f $PID_FILE ] ; then
- sshd
+ sshd $OPTIONS
RETVAL=$?
if [ "$RETVAL" = "0" ] ; then
my_success "sshd startup" "sshd"
More information about the openssh-unix-dev
mailing list