sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sks-devel] couple questions


From: Fabian Santiago
Subject: Re: [Sks-devel] couple questions
Date: Tue, 14 Jun 2016 01:34:01 -0400
User-agent: K-9 Mail for Android

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

And all I did was copy the sample conf installed with sks. And modified my 
necessary parameters.


On June 13, 2016 8:41:07 PM EDT, Phil Pennock <address@hidden> wrote:
>On 2016-06-10 at 18:45 -0400, Fabian Santiago wrote:
>> You're right, it does work that way and I have it up now as such. I
>was hung up I guess on why it doesn't work as advertised.
>>
>> See attached strace. This is above my head.
>
>This strace'd systemd but did not strace sks itself.
>
>SKS by default loads the configuration file as `./sksconf`, so whatever
>the working directory of the `sks db` and `sks recon` processes is,
>that's where the configuration file should be.  The configuration file
>is best, because otherwise you're looking at some intricate balancing
>of
>configuration for "recon" and "db" to make sure things work.
>
>You can just run `strace sks help` to not do anything but show the help
>text, but after SKS has loaded its configuration.  I use FreeBSD, so am
>using ktrace/kdump, but below is a highlight of what I see in the
>output, after searching forward with my text viewer ("less") for the
>name of the configuration file, "sksconf".  This is how you find what
>files a process was trying to access.
>
>What you _probably_ want to do is use:
>
>    sks db -basedir /path/to/runtime/directory
>
>and in your runtime directory have symlinks pointing to the real
>configuration files somewhere under /etc/.
>
>And hey, I just discovered that my `server_contact` field is
>out-of-date, by reading my own trace output.  :)
>
>-Phil
>
>-------------------------8< ktrace sks help
>>8--------------------------
> 32366 sks      CALL  stat(0x801dc9f40,0x7fffffffe8d8)
> 32366 sks      NAMI  "./sksconf"
>32366 sks      STRU  struct stat {dev=293016077, ino=15, mode=0100644,
>nlink=1, uid=0, gid=0, rdev=4294967295, atime=1399850869.655568857,
>stime=1426291686.685482306, ctime=1426291686.685482306,
>birthtime=1399850869.655568857, size=437, blksize=4096, blocks=9,
>flags=0x800 }
> 32366 sks      RET   stat 0
> 32366 sks      CALL  open(0x801c170f0,0<O_RDONLY>,<unused>0)
> 32366 sks      NAMI  "./sksconf"
> 32366 sks      RET   open 4
> 32366 sks      CALL  fcntl(0x4,F_SETFD,FD_CLOEXEC)
> 32366 sks      RET   fcntl 0
> 32366 sks      CALL  lseek(0x4,0,SEEK_CUR)
> 32366 sks      RET   lseek 0
> 32366 sks      CALL  read(0x4,0x801f52050,0x10000)
> 32366 sks      GIO   fd 4 read 437 bytes
>       "basedir: /var/sks/
>        hostname: sks.spodhuis.org
>        nodename: sks.spodhuis.org
>        server_contact: 0x403043153903637F
>        from_addr: address@hidden
>        membership_reload_interval: 1
>        initial_stat:
>        recon_address: 94.142.242.225 2a02:898:31:0:48:4558:73:6b73
>        hkp_address: 127.0.0.3
>        pagesize: 16
>        ptree_pagesize: 8
>        # With BDB 5.x, pagesize to 128, ptree_pagesize to 16
>        #
>   # Cache size limit (in MB) can limit the damage of misbehaving peers
>        cache: 80
>       "
> 32366 sks      RET   read 437/0x1b5
>-------------------------8< ktrace sks help
>>8--------------------------

- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQFLBAEBCgA1BQJXX5dJLhxGYWJpYW4gU2FudGlhZ28gPGZzYW50aWFnb0BnYXJi
YWdlLWp1aWNlLmNvbT4ACgkQW0YwXn4gDNWG0Qf7BqiFch2bbkk50RaQHZkVqs2X
x0Q8Oz+34Fpz/XxcWtF/grxzjsdfQwDYXhP4+HujrdueydxHSuCT0G4xwGEoqlYE
PQ6w8Ol34jh7dx8VVnA2LEZ1pLoHpdGWX8QVChX0e2lXahGyATvsgPQuhhIsOtUs
EG8gljX2rq12I4YYUWcaKQbcOl7Q96lr0urZeS9ZF71wWgjEgdsp34Gf1ZWK1Bew
d3onyUNkZaIyyNDwJ2nB8odgAKZbJEN+h4HZGY9AJ5jgKyq6Ns5boN/0Fbh3AGGC
Rcn85dU/9pEUyRsJKtoqEvfh+i2rBIS/jOl9EaIk6yoN5keawCihk2nUw4q6MQ==
=/kTO
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]