This is a discussion on How do I use the startup files? within the AIX Operating System forums, part of the Unix Operating Systems category; --> I've installed OpenSSH on an IBM RS/6000 7025 F50 server that's running AIX 6.2. I naturally want the sshd ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've installed OpenSSH on an IBM RS/6000 7025 F50 server that's running AIX 6.2. I naturally want the sshd deamon to start at boot time. I'm new to AIX, so don't know if I'm starting trying to start this correctly or not. I have put the following file # ls -l /etc/rc.d/rc3.d total 8 -rwxr-xr-x 1 root system 183 01 Aug 19:29 S90sshd which has the contents below. #! /bin/ksh case "$1" in start ) /usr/local/sbin/sshd ;; stop ) #next line is just temporary ls > /dev/null ;; * ) echo "Usage: $0 (start | stop)" exit 1 esac but sshd is not starting. If I start it manually by logging in as root and running /usr/local/sbin/sshd, it works fine. Any suggestions? -- Dr. David Kirkby, Senior Research Fellow, Department of Medical Physics, University College London, 11-20 Capper St, London, WC1E 6JA. Tel: 020 7679 6408 Fax: 020 7679 6269 Internal telephone: ext 46408 e-mail davek@medphys.ucl.ac.uk |
| |||
| "Dr. David Kirkby" wrote: > > I've installed OpenSSH on an IBM RS/6000 7025 F50 server that's > running AIX 6.2. I naturally want the sshd deamon to start at boot > time. I'm new to AIX, so don't know if I'm starting trying to start > this correctly or not. > > I have put the following file > > # ls -l /etc/rc.d/rc3.d > total 8 > -rwxr-xr-x 1 root system 183 01 Aug 19:29 S90sshd I've found the answer to this myself. I wrongfully assumed run level 3 was multi-user modes as in Solaris, but I see this is not the case. Seems like the system never went to run level 3, so the script did not execute. Putting it in /etc/rc.d/rc2/d solved it. -- Dr. David Kirkby, Senior Research Fellow, Department of Medical Physics, University College London, 11-20 Capper St, London, WC1E 6JA. Tel: 020 7679 6408 Fax: 020 7679 6269 Internal telephone: ext 46408 e-mail davek@medphys.ucl.ac.uk |
| ||||
| > On my AIX 5.1 machines with ssh as supplied by IBM there is > /etc/rc.d/rc2.d/Ssshd in which the pertinent line reads: > > startsrc -g ssh > > I dispute that it is more elegant to use inittab than the SysV run level > scripts. I think that the inclusion of support for these in AIX 5 was a > positive step. I agree with you about the SRC though. > AIX 4.3.3 has the SYSV startup too. And for those coming from another *NIX, the SRC is one of AIX' secrets. Think it's a matter of taste calling the SRC from /etc/rc.d/rc2.d/S* or /etc/inittab. On AIX 4.3.3 the /etc/rc.d/rc2.d directory is empty by default. And if the inittab calls rc scripts, the rc scripts call the SRC, almost for all those I have looked at. IMHO the SYSV startup is more flexible and as easy as the BSD startup, but what I really don't like is a confusing mixup of both. If I can manage to prevent the Apache supervisor process from detaching, I will change startup of the Apache to SRC. My Apache (1.3.27 built from source with GCC 3.2.3) ignores the flag for not detaching. So the SRC cannot shutdown cleanly and after a reboot there is an invalid PID-file. Arrgghhh. Only a stylistic question. --- Uli |