summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-05-19 21:15:09 +0000
committerd3v11 <d3v11@d3v11.ano>2012-05-19 21:15:09 +0000
commit40af6cb0b04cc5c938fc0212d8b9bbc91bedc716 (patch)
tree1d36ec096ef2580c76e61feb37d43793b7c427f1
parentb0766579d3b9c42f31e2dfa870daf528356a29cd (diff)
downloadresdb-40af6cb0b04cc5c938fc0212d8b9bbc91bedc716.tar.gz
resdb-40af6cb0b04cc5c938fc0212d8b9bbc91bedc716.zip
can use exec instead of csh for --install-daemontools. thanks AP :-)
-rwxr-xr-xcontrib/peer2anonet/peer2anonet6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index c4961ed..5c90f7f 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -330,12 +330,10 @@ INSTALL_DAEMONTOOLS(){
[[ $(echo X`which gcc`) == X ]] && exit 1
[[ $(echo X`which make`) == X ]] && echo ' fatal error: cannot find make'
[[ $(echo X`which make`) == X ]] && exit 1
- [[ $(echo X`which csh`) == X ]] && echo ' fatal error: cannot find csh'
- [[ $(echo X`which csh`) == X ]] && exit 1
if [ -w /etc/inittab ]; then :
elif [ -w /etc/rc.local ] && ! [ -w /etc/inittab ]; then
- sed -i "s/exit 0/csh -cf \'\/command\/svscanboot \&\'/" /etc/rc.local
+ sed -i "s/exit 0/exec \/command\/svscanboot \&/" /etc/rc.local
chmod +x /etc/rc.local
else
echo ' fatal error: cannot create reliable startup'
@@ -352,7 +350,7 @@ INSTALL_DAEMONTOOLS(){
cd admin/daemontools-0.76
sed -i 's/gcc/gcc -include errno.h/g' src/conf-cc
package/install
- csh -cf '/command/svscanboot &'
+ exec /command/svscanboot >/dev/null 2>&1 &
}
INSTALL_UCSPI_TCP(){