🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #318424

Re: YAMN v2.0.5 and Systemd service

#318424
From: Zax
Date: Fri, 04 Feb 2022 22:36
96 lines
3810 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, 4 Feb 2022 21:11:10 +0000, Sinless Remop wrote in
Message-Id: <20220204.211110.1d7d025a@mixmin.net>:

[snip]

> I am not using absolute paths in my yamn.yml file. Maybe that is where things are going wrong.
> Here is what I have been using:
>
> -  -  -  -  -
> general:
>     loglevel: info
>     logtofile: false
> files:
>     config: yamn.yml
>     pubring: pubring.mix
>     mlist2: mlist2.txt
>     pubkey: key.txt
>     secring: secring.mix
>     adminkey: adminkey.txt
>     help: help.txt
>     pooldir: pool
>     maildir: Maildir
>     idlog: idlog
>     chunkdb: chunkdb
>     logfile: yamn.log

This is your problem.  When you're running under systemd, without a working
directory defined in your unit file, it's treating these as absolute paths.  If
you remove the entire files: section, then they will default to the --dir path
you specify in your unit.  You can prove this by removing them and then
running:

yamn --debug

You should see all of the entires in the files section defined as
absolute within the --dir path.  I should have been clearer in my
earlier posting: The debug flag isn't returning what you should define
in your yml config file.  It's returning the entire config, including
all the defaults.  You only need to define the things your want to
adjust from default.  My yamn.yml contains:

- ---
general:
  loglevel: trace
  logtofile: true

mail:
  smtp_relay: fleegle.mixmin.net
  pipe: "/usr/sbin/sendmail -t"

stats:
  maxlat: 60
  minlat: 2
  minrel: 95.0
  relfinal: 99.0

urls:
  fetch: false

files:
  maildir: /home/crooks/Maildir/yamn5
  pubring: /home/echolot-yamn/echolot/results/pubring.mix
  mlist2: /home/echolot-yamn/echolot/results/mlist2.txt

remailer:
  name: yamn5
  address: yamn5@mixmin.net
  exit: false
  daemon: true

Apologies for not being clearer about it.

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEJHudPu4ysYQcZBcigyyPTc2QQmMFAmH9qocACgkQgyyPTc2Q
QmOQlw/6Aoku9St89xW/ZN/qi5JwYYDQKq6xmIxKhW/5dYLJUiS7o0bSg1L0HQav
r4kbg1by71UVQJT3MijwOb4TCkXrnygFRn+rklz3aTsQf9tyGk8scjfeY5+EXYTk
vLtC0uIpK+6Wf7XQ4fxaKdDF0AY7DYZjnZ7RlqJGO09bn6cHoTrqqX5UiDYKJq+U
D11n6z0qa+jBrz1Q8AdxVXi7qqwCqafmcjy5VOxVeJHSoejoiVrT/HQ17qGKdSvZ
qze/RVeTpfla9VDcmMR39tScRTKbtjMude/M+qpsq6GEDeiRwWL68wWkTzX0b5Cn
GIhQys258TkBYw+r8R1tyz77pwfJRN732GyCajuyFy0nBxY2u8peSLgYW1jwEZr5
yGbZSGQJxFVGHGe5p+Gu5tq3u/a/fMaR8qg9SiwRvWYcRS7g+4aGWCnP0OZRwHnI
efKm9qUSDJQF4ZYzVASicEtMzZYCeSof3DRYd62lpt9e09gqMX78zl+LPdA1yp9d
XlVmlvgM9Os+xllyI4jni/cwDG7OguLtdCk7Hs5XYNb9L2y6kaJxdD6SPiDYH5/R
NBAXXSLIqUdsZXfOrRdpJSBe3o/VZTUqWXG360pZzRGQCdueOSm9PzRsGsW/cZZm
RegB2BFXkytdSl2a6u1rl5PTpL2wfk2PWy4AfYMkMUAgJIXaOoY=
=z+im
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
ssb  rsa4096/832C8F4DCD904263 created: 2019-05-04 expires: 2024-05-02 usage: S
Technical Details
Message-ID: <slrnsvrak9.e3v.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <slrnsvr10k.e3v.admin@fleegle.mixmin.net> <20220204.211110.1d7d025a@mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnsvrak9.e3v.admin@fleegle.mixmin.net>
Subject: Re: YAMN v2.0.5 and Systemd service
Date: Fri, 04 Feb 2022 22:36:57 +0000
From: Zax <admin@mixmin.net>
References: <slrnsvr10k.e3v.admin@fleegle.mixmin.net> <20220204.211110.1d7d025a@mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Fri, 4 Feb 2022 22:36:57 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="c4af4a3027e8317d29ea238d8aa6bb2f616aa3fc"; logging-data="1347829"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.4-2 (Linux)