[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh loading at startup



The symlinks are links to your script that decide when the script should
be started (/etc/init.d/<script> start and stop). You can create symlinks
with 'ln -s <ORIGINAL SCRIPT> <LINK>', more info is in /usr/doc/sysvinit.

Ron

On Mon, 20 Mar 2000, Beavis wrote:

> sorry to e-mail dirrect;ly
> 
> i have made the script that i think will work /etc/init.d/ssh
> 
> #! /bin/sh
> 
> # /etc/init.d/ssh: start and stop the "secure shell(tm)" daemon
> 
> test -x /usr/local/sbin/sshd || exit 0
> 
> # Configurable options:
> 
> case "$1" in
>   start)
>         echo -n "Starting Secure Shell server: sshd"
>  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
> /usr/sbin/sshd
>         echo "."
>  ;;
>   stop)
>         echo -n "Stopping Secure Shell server: sshd"
>  start-stop-daemon --stop --quiet --oknodo --pidfile
> /var/run/sshd.pid --exec /usr/sbin/sshd
>         echo "."
>  ;;
> 
>   reload|force-reload)
>         echo -n "Reloading Secure Shell server's configuration"
>  start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
> /var/run/sshd.pid --exec /usr/sbin/sshd
>  echo "."
>  ;;
> 
>   restart)
>         echo -n "Restarting Secure Shell server: sshd"
>  start-stop-daemon --stop --quiet --oknodo --pidfile
> /var/run/sshd.pid --exec /usr/sbin/sshd
>  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
> /usr/sbin/sshd
>  echo "."
>  ;;
> 
>   *)
>  echo "Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}"
>  exit 1
> esac
> 
> exit 0
> 
> 
> 
> but how do i make a symlinks
> to it:
>  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
> 
> i am a newbie
> ls ????
> 
> 
> ----- Original Message -----
> From: Ron Rademaker <ron@wep.tudelft.nl>
> To: Beavis <beavis@bidz.com>
> Cc: debian list <debian-user@lists.debian.org>; <recipient list not shown:
> ;>
> Sent: Monday, March 20, 2000 3:38 PM
> Subject: Re: ssh loading at startup
> 
> 
> > /etc/init.d/ is where you have to put the script
> > /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
> >
> > Ron
> >
> > On Mon, 20 Mar 2000, Beavis wrote:
> >
> > > everytime i reboot my linux box i have to run the ssh deamon
> > >
> > > where can i put a line to tell it to start the ssh service at bootup
> > >
> > > thankx
> > >
> >
> >
> 


Reply to: