X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pl_sshd.spec;h=e6f9cd7f6584a35f5b005dad57d68c0cddd27dcd;hb=1c7f80c89bbf7b47eec92c6f5d7cf17767707e0c;hp=8729eab6ad7d32b5ea0312f0e17ef6ebe9006a17;hpb=a9f59b38e4836c95ffca8edf09562bb9358a82ad;p=pl_sshd.git diff --git a/pl_sshd.spec b/pl_sshd.spec index 8729eab..e6f9cd7 100644 --- a/pl_sshd.spec +++ b/pl_sshd.spec @@ -1,7 +1,7 @@ Summary: SSH server config for PlanetLab Name: pl_sshd Version: 1.0 -Release: 1 +Release: 2 Requires: autofs, openssh-server Copyright: GPL URL: http://www.planet-lab.org @@ -13,7 +13,7 @@ SSH server configuration for PlanetLab nodes. Configures an automounted directory as source for authorized_keys files and points sshd to that directory. -$Header: /cvs/pl_sshd/pl_sshd.spec,v 1.3 2003/12/01 21:22:53 sjm-pl_sshd Exp $. +$Header: /cvs/pl_sshd/pl_sshd.spec,v 1.5 2003/12/02 00:22:03 sjm-pl_sshd Exp $ %prep %setup @@ -71,9 +71,15 @@ if [ "$1" -ge 1 ]; then chkconfig --add pl_sshd if [[ "$RUNLEVEL" != "unknown" ]]; then + # + # starting pl_sshd before restarting sshd gives us a + # chance of recovery if stopping sshd aborts the + # update process e.g., because we're logged in using + # ssh. + # /etc/init.d/autofs restart - /etc/init.d/sshd restart /etc/init.d/pl_sshd start + /etc/init.d/sshd restart fi fi