Hi Hilton,

Quoting Hilton Chain (2023-08-25 09:34:09)
> On Fri, 25 Aug 2023 14:59:03 +0800,
> Tanguy LE CARROUR wrote:
> > I have no XDG "log" variable, but the `shepherd.log` in 
> > `~/.local/state/log/`
> > contains today's log, so… I guess it can write to the log folder.
> > The strange thing is that today mcron's log is in
> > `~/.local/state/shepherd/`?! 🤔
> 
> From the definition in (shepherd support), the location is expected:
> --8<---------------cut here---------------start------------->8---
> (define %user-log-dir
>   ;; Default log directory if shepherd is run as a normal user.
>   (string-append (or (getenv "XDG_STATE_HOME")
>                      (string-append user-homedir "/.local/state"))
>                  "/shepherd"))
> --8<---------------cut here---------------end--------------->8---
> 
> And ~/.local/state/log/mcron.log was used before changing to
> %user-log-dir:
> --8<---------------cut here---------------start------------->8---
> #:log-file (string-append
>             (or (getenv "XDG_STATE_HOME")
>                 (format #f "~a/.local/state"
>                         (getenv "HOME")))
>             "/log/mcron.log")
> --8<---------------cut here---------------end--------------->8---

Thanks for taking the time to explain! I'll remove the old ones.

Regards,

-- 
Tanguy

Reply via email to