From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a2452070f3da24ac X-Google-Attributes: gidfa528,public X-Google-Thread: 109d1b,a2452070f3da24ac X-Google-Attributes: gid109d1b,public X-Google-ArrivalTime: 2002-06-13 08:20:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!snoopy.risq.qc.ca!newsflash.concordia.ca!not-for-mail From: syl@alcor.concordia.ca (Sylvain Robitaille) Newsgroups: comp.security.ssh,comp.unix.tru64 Subject: Re: How to launch sshd during Tru64 startup? Date: 13 Jun 2002 15:20:06 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: <6445524b.0206130655.4c91c84b@posting.google.com> NNTP-Posting-Host: alcor.concordia.ca NNTP-Posting-User: syl User-Agent: slrn/0.9.5.7 (UNIX) Xref: archiver1.google.com comp.security.ssh:11488 comp.unix.tru64:7925 On 13 Jun 2002 07:55:56 -0700, Dub wrote: > Question. How to launch sshd during startup in the most elegant way? Place a startup script in /sbin/init.d, and link to it from /sbin/rc[023].d It doesn't have to be elaborate; It just needs to understand (and act on) 'start', 'stop', and perhaps 'restart' as a single argument. See a sample below my signature. I hope that helps... -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ---------------------------------------------------------------------- #!/bin/sh # # Start/Stop the secure shell daemon. SERVICE="Secure shell" DAEMON=/local/bin/sshd PIDFILE=/var/run/sshd.pid case $1 in 'start') if [ -x ${DAEMON} ] then $DAEMON # Error checking here would be good... echo "${SERVICE} started." else echo "Can't find file ${DAEMON}." echo "${SERVICE} NOT started." fi ;; 'stop') if [ -s ${PIDFILE} ] then if kill `cat ${PIDFILE}` >/dev/null 2>&1 then echo "${SERVICE} terminated." rm -f ${PIDFILE} fi fi ;; 'restart') $0 stop $0 start ;; *) echo "Usage: $0 start|stop|restart" ;; esac