#!/bin/bash case "$1" in start) /usr/sbin/sshd ;; stop) kill $(cat /var/run/sshd.pid) ;; *) echo "Usage: $0 start|stop" ; exit 1 ;; esac