BASH   62

ssh agent

Guest on 23rd June 2022 03:05:27 AM

  1. #!/bin/sh
  2. #
  3.  
  4. # Source functions
  5. . /etc/rc.d/init.d/functions
  6.  
  7. RETVAL=0
  8.  
  9. # See how we were called.
  10. case "$1" in
  11.   start)
  12.         echo -n "Starting SSH "
  13.         #daemon lpd
  14.         /usr/sbin/sshd
  15.         RETVAL=$?
  16.         echo
  17.         ;;
  18.   stop)
  19.         # Stop daemons.
  20.         echo -n "Shutting down ssh: "
  21.         killproc ssh
  22.         RETVAL=$?
  23.         echo
  24.         ;;
  25.   *)
  26.         echo "Usage: ssh {start|stop}"
  27.         exit 1
  28. esac
  29.  
  30. exit $RETVAL

Raw Paste


Login or Register to edit or fork this paste. It's free.