another deb11 deprecation warning

75 views
Skip to first unread message

Vince Skahan

unread,
Dec 19, 2021, 11:27:27 PM12/19/21
to weewx-development
Found in /var/log/syslog on a cleanly setup.py installed deb-11 vagrant vm

Dec 20 03:56:34 bullseye systemd[1]: /etc/systemd/system/weewx.service:13: PIDFile= references a path below legacy directory /var/run/, updating /var/run/weewx.pid → /run/weewx.pid; please update the unit file accordingly.


This just looks like a deprecation warning since /var/run is symlinked to /run on deb11 and everything works fine...

Tom Keffer

unread,
Dec 20, 2021, 7:30:31 AM12/20/21
to weewx-development
Grumble. I wonder why they felt they had to do that?

Let's leave it at /var/run for now, in order to accommodate older systems. 

--
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 weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/a8d47c38-7d36-487b-8e32-b2595f864fb1n%40googlegroups.com.

matthew wall

unread,
Dec 20, 2021, 7:47:09 AM12/20/21
to weewx-development
i will put an explicit conditional in the .deb installer.  if the system has systemd, it will install a unit file and use the new pid location conventions.  otherwise it will use the traditional locations and the rc script.

that will keep both systemd (new debian) and init.d (devuan and older debian) systems happy.

Vince Skahan

unread,
Dec 20, 2021, 11:42:16 AM12/20/21
to weewx-development
Maybe nobody ever noticed this one before until I saw the syslog message in debian-11.

I checked /etc/os-release for what version they reported being based on.
The following have a /var/run => /run symlink.
  • centos 7.9
  • almalinux 8.5 (rhel-8-like)
  • ubuntu 18.04 LTS and newer
  • raspbian based on deb-10 and newer
  • deb-11
  • opensuse 15.2
I didn't check anything EOL.

Greg Troxel

unread,
Dec 20, 2021, 3:06:17 PM12/20/21
to Vince Skahan, weewx-development

Vince Skahan <vince...@gmail.com> writes:

> I checked /etc/os-release for what version they reported being based on.
> The following have a /var/run => /run symlink.
>
> - centos 7.9
> - almalinux 8.5 (rhel-8-like)
> - ubuntu 18.04 LTS and newer
> - raspbian based on deb-10 and newer
> - deb-11
> - opensuse 15.2

And in NetBSD, there's /var/run (real directory) and has never been
/run. This convention dates back to 4.xBSD, I'm pretty sure, and seems
to be in widespread use. So it sounds good that any change to /run
will be only when it's detected that the system being installed on has
decided to depart from the historical norms :-)


signature.asc

Cameron D

unread,
Dec 20, 2021, 5:52:41 PM12/20/21
to weewx-development
It was certainly there in Debian 10, which I noticed as soon as I created a systemd  unit file for weewx.

The other aspect that can trip up old scripts (usually my home-made ones)  is that /run is mounted as tmpfs so subdirectories lose their properties on reboot. The ones under /var/run assumed they were on a non-volatile filesystem.

Reply all
Reply to author
Forward
0 new messages