-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jul 14, 2010 at 09:43:26AM -0400, Hartl, Gerhard L. wrote: > I'm attempting to create a base Linux image and keep getting stuck in the > same spot. The image is capturing properly, but when Linux is going > through post load, something breaks ssh. I don't understand why > "/etc/init.d/ext_sshd stop" would halt ssh on the private interface?!?
I ran into this same problem. The issue is the RHEL5 init script for sshd; when asked to "stop", it runs killproc on sshd (the command string). This kills both the private and public SSH daemons. I modified the RHEL script to instead call 'killproc -p' on the PID, not the command name: > diff /tmp/ext_sshd /etc/init.d/sshd 30,31c30 < PID_FILE=/var/run/ext_sshd.pid < OPTIONS='-f /etc/ssh/external_sshd_config' - --- > PID_FILE=/var/run/sshd.pid 124,125c123,124 < if [ -f $PID_FILE ]; then < killproc -p $PID_FILE - --- > if [ -n "`pidfileofproc $SSHD`" ] ; then > killproc $SSHD - -- Scott M. Sorrentino <sms...@cornell.edu> CIT Systems & Operations, Cornell University 705 Rhodes Hall // (607) 254-8535 GnuPG fingerprint: 6E30 0B83 43F8 CF8B 3B44 7DBE 6AAE DFC9 1DE6 8C1C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFMPcG6aq7fyR3mjBwRAgtPAKCejUix04KGTfO6HRj15IsVrDBvxQCgxKdD lz9R9Ft73k1OqGIkNkMxbC4= =OKHV -----END PGP SIGNATURE-----