Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/sshd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 74 by niro, Tue Mar 15 19:07:56 2005 UTC revision 75 by niro, Wed May 11 12:34:30 2005 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/sshd,v 1.3 2005-03-15 19:07:56 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/sshd,v 1.4 2005-05-11 12:34:30 niro Exp $
3    
4  #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k  #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5  #%start: 30  #%start: 30
# Line 39  case "$1" in Line 39  case "$1" in
39   echo -e ${COLOREDSTAR}"Starting SSH Server ..."   echo -e ${COLOREDSTAR}"Starting SSH Server ..."
40   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid \   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid \
41   --startas /usr/sbin/sshd   --startas /usr/sbin/sshd
42     evaluate_retval
43   update_svcstatus $1   update_svcstatus $1
44   splash svc_started "$(basename $0)" 0   splash svc_started "$(basename $0)" 0
45   ;;   ;;
# Line 46  case "$1" in Line 47  case "$1" in
47   stop)   stop)
48   echo -e ${COLOREDSTAR}"Stopping SSH Server ..."   echo -e ${COLOREDSTAR}"Stopping SSH Server ..."
49   start-stop-daemon --stop --quiet --pidfile /var/run/sshd.pid   start-stop-daemon --stop --quiet --pidfile /var/run/sshd.pid
50     evaluate_retval
51   update_svcstatus $1   update_svcstatus $1
52   splash svc_stopped "$(basename $0)" 0   splash svc_stopped "$(basename $0)" 0
53   ;;   ;;

Legend:
Removed from v.74  
changed lines
  Added in v.75