freebsd-ports/picobsd/ssh-picobsd/files/sshd.sh
Luigi Rizzo 90d8c77fba New port: stripped-down ssh version to be used in picobsd images.
"stripped down" refers to the fact that we build a single binary
which includes ssh, sshd and scp functionality without having
to bring in 3 copies of mostly the same code.

Requests to add this category and this port have been posted
on the ports list and directly to satoshi over the past few
months. I assume no reply means no problem.
2001-04-22 14:03:04 +00:00

27 lines
454 B
Bash

#!/bin/sh
case "$1" in
start)
!!PREFIX!!/sbin/sshd
echo -n ' sshd'
;;
stop)
if [ -f /var/run/sshd.pid ]; then
kill -TERM `cat /var/run/sshd.pid`
rm -f /var/run/sshd.pid
echo -n ' sshd'
fi
;;
restart)
if [ -f /var/run/sshd.pid ]; then
kill -HUP `cat /var/run/sshd.pid`
echo 'sshd restarted'
fi
;;
-h)
echo "Usage: `basename $0` { start | stop | restart }"
;;
*)
!!PREFIX!!/sbin/sshd
echo -n ' sshd'
;;
esac