forked from mirrors/nixpkgs
we need to be able to use touch and rm and all
svn path=/nixpkgs/trunk/; revision=4412
This commit is contained in:
parent
8a01ee072a
commit
e10f2c1f30
|
@ -28,6 +28,7 @@ RSA1_KEY=/etc/ssh/ssh_host_key
|
||||||
RSA_KEY=/etc/ssh/ssh_host_rsa_key
|
RSA_KEY=/etc/ssh/ssh_host_rsa_key
|
||||||
DSA_KEY=/etc/ssh/ssh_host_dsa_key
|
DSA_KEY=/etc/ssh/ssh_host_dsa_key
|
||||||
PID_FILE=/var/run/sshd.pid
|
PID_FILE=/var/run/sshd.pid
|
||||||
|
OPTIONS="-h $DSA_KEY"
|
||||||
|
|
||||||
do_rsa1_keygen() {
|
do_rsa1_keygen() {
|
||||||
if [ ! -s $RSA1_KEY ]; then
|
if [ ! -s $RSA1_KEY ]; then
|
||||||
|
@ -97,7 +98,7 @@ start()
|
||||||
echo -n $"Starting $prog:"
|
echo -n $"Starting $prog:"
|
||||||
@initscripts@/sbin/initlog -c "$SSHD $OPTIONS" && success || failure
|
@initscripts@/sbin/initlog -c "$SSHD $OPTIONS" && success || failure
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
|
[ "$RETVAL" = 0 ] && @coreutils@/bin/touch /var/lock/subsys/sshd
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +107,7 @@ stop()
|
||||||
echo -n $"Stopping $prog:"
|
echo -n $"Stopping $prog:"
|
||||||
killproc $SSHD -TERM
|
killproc $SSHD -TERM
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd
|
[ "$RETVAL" = 0 ] && @coreutils@/bin/rm -f /var/lock/subsys/sshd
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue