>В Linux я запускал sshd. И тут я обнаруживаю что в init.d
>sshd отсутствует, может кто подскажет как называется пакет ssh для Solaris
>?
>Про Solaris крайне скудно напсано. А если вы скинете ссылочки полезные по
>Solaris, буду очень блогадарен )))) Спасибо
у меня свой cкрипт:
#!/sbin/sh
#
# /etc/init.d/sshd - Start/Stop the ssh daemon
#
#
# The network and streams should already be built by the time
# this script runs. /usr/local should be mounted.
#
# If sshd is already executing, don't re-execute it.
#
PATH=/usr/bin:/bin
case $1 in
'start')
if [ -f /usr/local/sbin/sshd -a -f /usr/local/etc/ssh/sshd_config ]; the
n
/usr/local/sbin/sshd;
fi
;;
'stop')
if [ -f /var/log/sshd.pid ]; then
/usr/bin/kill -TERM `cat /var/log/sshd.pid`
else
pid=`/usr/bin/ps -e -o pid,comm | /usr/bin/grep sshd | /usr/bin/grep -v grep | grep -v /sbin/sh | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
if test "$pid"
then
/usr/bin/kill -TERM $pid
fi
fi
/bin/rm -f /var/log/sshd.pid
;;
'restart')
if [ -f /var/log/sshd.pid ]; then
/usr/bin/kill -HUP `cat /var/log/sshd.pid`
else
echo "No pid file /var/log/sshd.pid"
fi
;;
*)
echo "usage: /etc/init.d/sshd {start|stop|restart}"
;;
esac
ну и для random тоже скрипт