"Fossies" - the Fresh Open Source Software Archive

Member "hitch-1.5.2/src/tests/test27-reload.sh" (27 Aug 2019, 649 Bytes) of package /linux/www/hitch-1.5.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "test27-reload.sh": 1.4.8_vs_1.5.0.

    1 #!/bin/sh
    2 
    3 . hitch_test.sh
    4 
    5 cp ${CERTSDIR}/default.example.com cert.pem
    6 
    7 # XXX: reload doesn't work with a relative pem file
    8 cat >hitch.cfg <<EOF
    9 pem-file = "$PWD/cert.pem"
   10 frontend = "[localhost]:$LISTENPORT"
   11 backend = "[hitch-tls.org]:80"
   12 EOF
   13 
   14 # XXX: reload doesn't work with a relative config file
   15 start_hitch --config=$PWD/hitch.cfg
   16 
   17 s_client >s_client1.dump
   18 subj_name_eq "default.example.com" s_client1.dump
   19 
   20 # restart hitch after having a more recent cert file
   21 cp ${CERTSDIR}/ecc.example.com.pem cert.pem
   22 echo "kill -HUP $(hitch_pid)"
   23 kill -HUP $(hitch_pid)
   24 sleep 2
   25 
   26 s_client | tee s_client2.dump
   27 subj_name_eq "ecc.example.com" s_client2.dump