From 8a01ee072a22eafb6fd583753d8c527903dce904 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Thu, 22 Dec 2005 18:16:10 +0000 Subject: [PATCH] we need to the path to initscripts and also make it executable svn path=/nixpkgs/trunk/; revision=4411 --- pkgs/servers/ssh-script/builder.sh | 2 ++ pkgs/servers/ssh-script/sshd | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/ssh-script/builder.sh b/pkgs/servers/ssh-script/builder.sh index 436f5f95afc7..bd7894d49311 100644 --- a/pkgs/servers/ssh-script/builder.sh +++ b/pkgs/servers/ssh-script/builder.sh @@ -7,3 +7,5 @@ sed -e "s^@bash\@^$bash^g" \ -e "s^@initscripts\@^$initscripts^g" \ -e "s^@coreutils\@^$coreutils^g" \ < $script > $out/control + +chmod +x $out/control diff --git a/pkgs/servers/ssh-script/sshd b/pkgs/servers/ssh-script/sshd index 66657b74e2aa..c3e26783444e 100755 --- a/pkgs/servers/ssh-script/sshd +++ b/pkgs/servers/ssh-script/sshd @@ -95,7 +95,7 @@ start() do_dsa_keygen echo -n $"Starting $prog:" - initlog -c "$SSHD $OPTIONS" && success || failure + @initscripts@/sbin/initlog -c "$SSHD $OPTIONS" && success || failure RETVAL=$? [ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd echo