if you need a directory to exist (be created if necessary) on boot up (such as
a subdirectory inside a ramdisk), i configure it in /etc/tmpfiles.d/.
in my case, running weewx as user ‘weewx’, i have a directory /run/weewx/
(/run/ is a ramdisk) owned by weewx for runtime stuff like pidfiles, so have
file /etc/tmpfiles.d/weewx.conf containing
d /run/weewx 0755 weewx weewx -
⊣ Graham Eddy ⊢
> On 13 Mar 2022, at 11:13 am, Eric K <[email protected]> wrote:
>
> Vince, thanks for your idea of manually creating the
> /home/weewx/public_html/json directory.
> I tried it and it did allow Belchertown to work with the first run of
> wee_reports.
>
> Later, I found if I ran wee_reports a 2nd time, the Belchertown skin
> completes the creation of the web page in the ramdisk, because the first run
> of wee_reports (that fails) creates the /home/weewx/public_html/json
> directory. That's good enough to succeed after that.
>
> At present, the public_html directory is running inside a ramdisk.
> Since it works, I'm going to leave it like this.
>
> I'm using the imagemagick package to add date/time info to each webcam grab.
> If nothing else, my webcam pictures are likely loading and processing faster.
>
> Eric
[snip]
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/32CC02BF-2EB6-4CAE-AC04-2FA54B431051%40gmail.com.