Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start a daemon each time server is rebooted? 1

Status
Not open for further replies.

Yrrk

IS-IT--Management
Aug 22, 2004
180
US
I've got AIX 5.2.0.0 installed and sshd. I can do a startsrc to start the sshd but anytime i reboot i have to telnet to the box and start it manually.

Can someone remind me how to make it automatically start it on reboot?

Thanks!
 
Maybe i'm blind but i don't see anything obvious that does that for me in mkssys.. I tried chssys -s sshd -QR hoping that would do it but can't reboot the server at the moment to check. It's already a defined subsystem so the only thing i'm trying to do is make it start automatically on system bootup.
 
Put an entry in the inittab file using 'mkitab' that starts it.

Regards,
Chuck
 
just vi /etc/inittab and add your entry.

for example:
ssh:2:eek:nce:/usr/local/bin/sshd

I suggested mkssys because it is then under the system resource controller and you can use srcmaster to control it. You still would have needed to add an entry to inittab, but you could have started it with startsrc -s <subsystem>.
 
or put the startsrc -s sshd line in /etc/rc.net - perhaps it's already there and you just need to uncomment it?


HTH,

p5wizard
 
kHz and p5wizard both make excellent recommendations. Either should work. I prefer the inittab entry.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top