Changeset 1636

Show
Ignore:
Timestamp:
01/29/05 17:01:39 (4 years ago)
Author:
morris
Message:

Sync with wired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/Makefile.in

    r1607 r1636  
    8787                echo "to restart a running tracker."; \ 
    8888        else \ 
     89                if [ ! -f $(prefix)/$(trackerddir)/etc/certificate.pem ]; then \ 
     90                        $(prefix)/$(trackerddir)/trackerdctl certificate.pem; \ 
     91                fi; \ 
     92                \ 
    8993                echo ""; \ 
    9094                echo "Installation complete!"; \ 
  • trackerd/trunk/man/trackerdctl.1

    r286 r1636  
    6464.It Va configtest 
    6565Runs a configuration syntax test, to verify that the config file will be accepted. 
     66.It Va certificate 
     67Generates a new OpenSSL certificate using 
     68.Xr req 1 . 
    6669.It Va status 
    6770Prints a status summary. 
     
    8386.Sh SEE ALSO 
    8487.Xr trackerd 8 , 
    85 .Xr trackerd.conf 5 
     88.Xr trackera.conf 5 
  • trackerd/trunk/trackerd/trackerdctl.in

    r291 r1636  
    99# The path to your status file, should be the same as in your trackerd.conf 
    1010STATUSFILE="@trackerddir@/trackerd.status" 
     11 
     12# The path to your certificate, should be the same as in your trackerd.conf 
     13CERTIFICATE="@trackerddir@/etc/certificate.pem" 
    1114 
    1215# The path to your trackerd binary 
     
    115118        configtest) 
    116119                $TRACKERD -t 
     120                ;; 
     121 
     122        certificate) 
     123                HOSTNAME=$(hostname) 
     124                openssl req -x509 -newkey rsa:1024 -subj "/CN=$HOSTNAME" -days 365 -nodes -keyout $CERTIFICATE -out $CERTIFICATE 
    117125                ;; 
    118126 
     
    194202 
    195203        *) 
    196                 echo "Usage: $PROG [start | stop | restart | reload | config | configtest | status | help]" 
     204                echo "Usage: $PROG [start | stop | restart | reload | config | configtest | certificate | status | help]" 
    197205                cat <<EOF 
    198206 
    199     start       start trackerd 
    200     stop        stop trackerd 
    201     restart     restart trackerd 
    202     reload      send trackerd a SIGHUP, causing it to reload its configuration 
    203     config      show the configuration 
    204     configtest  run a configuration syntax test 
    205     status      show a status screen 
    206     help        display this information 
     207    start        start trackerd 
     208    stop         stop trackerd 
     209    restart      restart trackerd 
     210    reload       send trackerd a SIGHUP, causing it to reload its configuration 
     211    config       show the configuration 
     212    configtest   run a configuration syntax test 
     213    certificate  generate a new OpenSSL certificate 
     214    status       show a status screen 
     215    help         display this information 
    207216 
    208217By Axel Andersson <axel@zankasoftware.com>