On Saturday, April 23, 2022 at 12:54:08 AM UTC-4 Bernhard R. wrote: > May I add one more comment on this? > At least in the suse-world, it seems that pidfiles are to be created in > /run now, not in /var/run anymore, following FHS 3.0 > <https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html>. > I'm not sure how other distros do handle that but at least for suse, it > would be great to alter the ExecStart line to > > ExecStart=/usr/bin/weewxd --pidfile=/run/weewx.pid /etc/weewx/weewx.conf
thank you bernhard. the --daemon option has been removed from the systemd unit file at commit 8e13bad1b1e8226569d0685724ac5a4bcbfa1945 i also removed the pidfile option, since the pidfile is not necessary for systemd, and it just causes problems, either in the location (/run vs /var/run) or with permissions (when running as non-root users, you must specify permissions on the directory in which the pid file is located). these changes should appear in weewx 4.8.1 for the record, the --daemon option works in the unit file when you tell systemd that weewx is a forking process. but when weewx is declared as a simple non-forking process, using the --daemon option causes problems. for systems that do not use systemd, the --daemon option is still the preferred invocation. -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/3b35ce16-817c-4751-9827-b576466b7afan%40googlegroups.com.
