diff options
author | James Meyer <james.meyer@operamail.com> | 2014-02-16 23:56:35 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-02-19 19:03:04 (GMT) |
commit | 374948afc489b11508c1e9109de0e1da54df4983 (patch) | |
tree | c472e0fc17175bef573b7fc1f9477a079ffbfa2b /abs/core/openssh/sshd | |
parent | 10365dc137276fa2793d41606cb0d7047506d3ad (diff) | |
download | linhes_pkgbuild-374948afc489b11508c1e9109de0e1da54df4983.zip linhes_pkgbuild-374948afc489b11508c1e9109de0e1da54df4983.tar.gz linhes_pkgbuild-374948afc489b11508c1e9109de0e1da54df4983.tar.bz2 |
openssh: 6.4
update binary path to /usr/bin
refs #961
Diffstat (limited to 'abs/core/openssh/sshd')
-rwxr-xr-x | abs/core/openssh/sshd | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/abs/core/openssh/sshd b/abs/core/openssh/sshd deleted file mode 100755 index 4bf4780..0000000 --- a/abs/core/openssh/sshd +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/sshd - -PIDFILE=/run/sshd.pid -PID=$(cat $PIDFILE 2>/dev/null) -if ! readlink -q /proc/$PID/exe | grep -q '^/usr/sbin/sshd'; then - PID= - rm $PIDFILE 2>/dev/null -fi - -case "$1" in - start) - stat_busy 'Starting Secure Shell Daemon' - /usr/bin/ssh-keygen -A - [[ -d /var/empty ]] || mkdir -p /var/empty - [[ -z $PID ]] && /usr/sbin/sshd $SSHD_ARGS - if [[ $? -gt 0 ]]; then - stat_fail - else - add_daemon sshd - stat_done - fi - ;; - stop) - stat_busy 'Stopping Secure Shell Daemon' - [[ ! -z $PID ]] && kill $PID &> /dev/null - if [[ $? -gt 0 ]]; then - stat_fail - else - rm_daemon sshd - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |