Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* How to launch sshd during Tru64 startup?
@ 2002-06-13 14:55 Dub
  2002-06-13 15:20 ` Sylvain Robitaille
  2002-06-13 21:39 ` Nico Kadel-Garcia
  0 siblings, 2 replies; 3+ messages in thread
From: Dub @ 2002-06-13 14:55 UTC (permalink / raw)


Hi,

I have just installed OpenSSH under Tru64 4.0G.

Question. How to launch sshd during startup in the most elegant way?
RedHat Linux has rather sophisticated script /etc/init.d/sshd, but I
cannot find any ready-to-go sample for Tru64.

Many thanks in advance for sharing your knowledge!

BR,
Dub


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to launch sshd during Tru64 startup?
  2002-06-13 14:55 How to launch sshd during Tru64 startup? Dub
@ 2002-06-13 15:20 ` Sylvain Robitaille
  2002-06-13 21:39 ` Nico Kadel-Garcia
  1 sibling, 0 replies; 3+ messages in thread
From: Sylvain Robitaille @ 2002-06-13 15:20 UTC (permalink / raw)


On 13 Jun 2002 07:55:56 -0700, Dub <dub@latnet.lv> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to launch sshd during Tru64 startup?
  2002-06-13 14:55 How to launch sshd during Tru64 startup? Dub
  2002-06-13 15:20 ` Sylvain Robitaille
@ 2002-06-13 21:39 ` Nico Kadel-Garcia
  1 sibling, 0 replies; 3+ messages in thread
From: Nico Kadel-Garcia @ 2002-06-13 21:39 UTC (permalink / raw)



"Dub" <dub@latnet.lv> wrote in message
news:6445524b.0206130655.4c91c84b@posting.google.com...
> Hi,
>
> I have just installed OpenSSH under Tru64 4.0G.
>
> Question. How to launch sshd during startup in the most elegant way?
> RedHat Linux has rather sophisticated script /etc/init.d/sshd, but I
> cannot find any ready-to-go sample for Tru64.
>
> Many thanks in advance for sharing your knowledge!
>
> BR,
> Dub

Copy an init script from Linux, and put it in /sbin/init.d with appropriate
symbolic links tp the /sbin/rc*.d directories.

Take a look at what's already there for more details on the tru64 setup.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-13 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-13 14:55 How to launch sshd during Tru64 startup? Dub
2002-06-13 15:20 ` Sylvain Robitaille
2002-06-13 21:39 ` Nico Kadel-Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox