Vinjam, Kishore
2004-Jan-20 13:27 UTC
Problem restarting SSHD in AIX when the server got rebooted.
Hi , I had downloaded the OpenSSH AIX binary packages from http://www.zip.com.au/~dtucker/openssh/ . It is working fine usually, but when i reboot the server it doesnt start the sshd daemon automatically. I see there is a line added in /etc/rc.tcpip server to start the sshd on restart while intallation of the package. But it is throwing the following error in error log while the server is rebooted. #errpt -a --------------------------------------------------------------------------- LABEL: SRC IDENTIFIER: E18E984F Date/Time: Tue Jan 20 18:44:55 Sequence Number: 418 Machine Id: 000D55FD4C00 Node Id: oaklab4 Class: S Type: PERM Resource Name: SRC Description SOFTWARE PROGRAM ERROR Probable Causes APPLICATION PROGRAM Failure Causes SOFTWARE PROGRAM Recommended Actions PERFORM PROBLEM RECOVERY PROCEDURES Detail Data SYMPTOM CODE 256 SOFTWARE ERROR CODE -9020 ERROR CODE 0 DETECTING MODULE 'srchevn.c'@line:'343' FAILING MODULE sshd --------------------------------------------------------------------------- But i am able to restart the sshd manually using startsrc. I notice that the problem is because /etc/rc.tcpip is using startsrc -s sshd -a "0|1" . I tried the same command manually and an error ( as mentioned above) was logged. I hope this could be a know problem for you. Please let me know the solution for the same.. Your Help would be greatly apprecited. Regards, Kishore Vinjam.
Darren Tucker
2004-Jan-21 06:52 UTC
[Resolved] Problem restarting SSHD in AIX when the server got rebooted.
Vinjam, Kishore wrote: [problem starting sshd on AIX via rc.tcpip and startsrc] For the benefit of the list archives and/or Google: this was due to the $3 variable being poluted elsewhere (not sure where) and still being set when the "start sshd" line was reached ("start" is a shell function that takes up to 3 arguments). It was resolved by changing the sshd line in /etc/rc.tcpip from: start /usr/local/sbin/sshd "$src_running" to start /usr/local/sbin/sshd "$src_running" "" -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.