[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] other startup services
- Subject: RE: [cobalt-users] other startup services
- From: Brandon Wheaton <brandonw@xxxxxxxxxxxx>
- Date: Fri Mar 2 02:42:18 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> -----Original Message-----
> From: Loryan Strant [mailto:cobalt-email@xxxxxxxxxx]
>
> Heyas,
>
> I've recently installed OpenSSH and xntpd.
> They are in and do work, but how do I set them up so that
> they begin running
> at boot-up?
>
> Thanks,
>
> Loryan
>
Hi Loryan.
1. Create a file in /etc/rc.d/init.d called sshd and paste this into it:
#!/bin/sh
case "$1" in
'start')
if [ -x /usr/local/sbin/sshd -a -f /etc/sshd_config ]; then
echo "Starting the SSH daemon..."
/usr/local/sbin/sshd
fi
;;
'stop')
/usr/bin/killall sshd
echo "Stopping the SSH daemon..."
;;
*)
echo "Usage: /etc/init.d/sshd { start | stop }"
;;
esac
exit 0
** you might need to change the path to sshd if yours is different
than the one in this script **. Do "which sshd" to verify its location.
2. cd ../rc2.d and do ln -s ../init.d S75sshd
3. Log out of your SSH session temporarily enable telnet, telnet in and
test the script as so:
/etc/rc.d/rc2.d/S75sshd stop
/etc/rc.d/rc2.d/S75sshd start
4. Log out, disable telnet and you're good to go.
5. Take care
Brandon Wheaton
UNIX Systems Engineer
ValiCert, Inc.
1215 Terra Bella Ave.
Mountain View, CA 94043
650.280.UNIX
----
Sure UNIX is user friendly; it's just picky about who its friends are.