From 57cd084ff2f96f001045a8849b68877e9db2f6d0 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 25 May 2013 22:15:39 +0200 Subject: rcdscripts: start deprecating /usr/sbin The following scripts were found to be broken due to binaries being moved to /usr/bin: acpid, alsa, fancontrol, sensord, healthd, sshd, rfkill and syslog-ng. I do not doubt several more daemons were moved to /usr/bin already. But there are 230 services in this package and I can't test them all. --- src/openssh/sshd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openssh/sshd') diff --git a/src/openssh/sshd b/src/openssh/sshd index d60804e..a25e738 100755 --- a/src/openssh/sshd +++ b/src/openssh/sshd @@ -6,7 +6,7 @@ PIDFILE=/run/sshd.pid PID=$(cat $PIDFILE 2>/dev/null) -if ! readlink -q /proc/$PID/exe | grep -q '^/usr/sbin/sshd'; then +if ! readlink -q /proc/$PID/exe | grep -q '^/usr/bin/sshd'; then PID= rm $PIDFILE 2>/dev/null fi @@ -15,7 +15,7 @@ case "$1" in start) stat_busy 'Starting Secure Shell Daemon' /usr/bin/ssh-keygen -A - [[ -z $PID ]] && /usr/sbin/sshd $SSHD_ARGS + [[ -z $PID ]] && /usr/bin/sshd $SSHD_ARGS if [[ $? -gt 0 ]]; then stat_fail else -- cgit v1.2.3