Hi there,
Is there anyone who already created a startup script for SSHD to put in
/etc/init.d ? If yes could I have it ?
Thanks
Regards
Is there anyone who already created a startup script for SSHD to put in
/etc/init.d ? If yes could I have it ?
Thanks
Regards
#!/sbin/shQuote:> Hi there,
> Is there anyone who already created a startup script for SSHD to put in
> /etc/init.d ? If yes could I have it ?
> Thanks
> Regards
case "$1" in
'start')
/usr/local/sbin/sshd
;;
'stop')
/usr/bin/pkill -x -u 0 sshd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 90,000 Newsgroups - 16 Different Servers! =-----
Marc> Hi there,Quote:>>>>> "Marc" == syn uw <Marc> writes:
Marc> Is there anyone who already created a startup script for SSHD
Marc> to put in /etc/init.d ? If yes could I have it ?
#!/bin/shQuote:>----------------script begin--------------------<
case $1 in
'start')
if [ -f /usr/local/sbin/sshd ]; then
echo "starting sshd..."
/usr/local/sbin/sshd
fi
;;
'stop')
if [ -f /etc/sshd.pid ]; then
echo "stopping sshd..."
kill -TERM `cat /etc/sshd.pid`
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
--Quote:>-----------------script end---------------------<
> Marc> Hi there,
> Marc> Is there anyone who already created a startup script for SSHD
> Marc> to put in /etc/init.d ? If yes could I have it ?
>>----------------script begin--------------------<
> #!/bin/sh
> case $1 in
> 'start')
> if [ -f /usr/local/sbin/sshd ]; then
> echo "starting sshd..."
> /usr/local/sbin/sshd
> fi
> ;;
> 'stop')
> if [ -f /etc/sshd.pid ]; then
> echo "stopping sshd..."
> kill -TERM `cat /etc/sshd.pid`
> fi
> ;;
> *)
> echo "usage: $0 {start|stop}"
> ;;
> esac
>>-----------------script end---------------------<
> Is there anyone who already created a startup script for SSHD to put in
> /etc/init.d ? If yes could I have it ?
> Thanks
> Regards
The link is http://www.sun.com/blueprints/#opensshsolaris
--
Thierry Chenus
#grep ssh /etc/inetd.conf
ssh stream tcp nowait root /usr/local/openssh/bin/sshd sshd -i
#grep ssh /etc/services
ssh 22/tcp
--
Roger Marquis
Roble Systems Consulting
http://www.roble.com/
Hi there,
I have a SSHD startup script in /etc/init.d called sshd now I am
wondering where I should link it to... Which rcX.d directories and in
which position ??
Regards
2. SCSI tape driver (st) does not read st.conf
3. Script for sshd start-up on Digital Unix??
4. Redhat 5.1 Linux -TCP/IP Works; FTP Server and Samba not accessable!???
5. Having a startup script (rc3.d) startup under another id
6. Logitech wheel FirstMouse+ help...
7. How to launch sshd during Tru64 startup?
8. gcc2.5.2 and kernel rebuild
9. Startup file for SSHD + other questions
10. how to enable sshd at startup in redhat
11. Script to create startup scripts in /etc/init.d or /etc/rc?.d
12. Trouble connecting to an SSHD box(RH7 newest SSHD)
13. su in rc scripts or startup scripts problem