[Nut-upsuser] grep ID /etc/os-release

Jim Klimov jimklimov+nut at gmail.com
Thu Nov 26 13:03:38 GMT 2020


Sorry, my mail did not go out...

For Solaris-like systems, I am aware of the SVR4 packaging recipe in NUT
source tree. This defaults to what the configure script args tell it, on my
box I see /etc/nut for configs in package files, and nobody:nobody as the
account - but I did not see any distributions delivering such packages. I
tested installing that in OmniOS FWIW.

There is also in-distro recipe for IPS pkg(5) package in OpenIndiana bolted
specifically to /etc/nut and nut:nut.

Identifying the systems could go via `uname -a` pointing to "SunOS" family
and "illumos" sub-species, and /etc/release common to Solarish systems with
layman's text about current boot environment.

Thanks,
Jim Klimov

On Thu, Nov 26, 2020, 13:33 Roger Price <roger at rogerprice.org> wrote:

> On Thu, 19 Nov 2020, Roger Price wrote:
>
> > I would like to build a list of the user names and configuration file
> > locations for the most common distributions which include NUT.
> >
> > These will be used to produce more user-friendly tools and documentation
> for
> > NUT.
>
> Thanks to everyone who replied.  Here is the list I compiled:
>
>   Distribution ID        User   Directory           ID source
>   Aix          aix       nut ?  /etc/nut/ ?         uname -a
>   Amazon       amzn      nut    /etc/ups/ ?         /etc/os-release
>   Arch         arch      nut    /etc/nut/           /etc/os-release
>   CentOS       centos    nut    /etc/ups/           /etc/os-release
>   Apple        darwin    nut    /etc/nut/           uname -a
>   Debian       debian    nut    /etc/nut/           /etc/os-release
>   Fedora       fedora    nut    /etc/ups/           /etc/os-release
>   FreeBSD      freebsd   uucp   /usr/local/etc/nut/ uname -a
>   Gentoo       gentoo    nut    /etc/nut/           /etc/gentoo-release
>   HP-UX        hpux      nut ?  /etc/nut/ ?         uname -a
>   IPFire       ipfire    nutmon /etc/nut/           uname -a
>   Kali         kali      nut    /etc/nut/           /etc/os-release
>   Mint         linuxmint nut    /etc/nut/           /etc/os-release
>   Apple        mac       nut ?  /etc/nut/ ?         uname -a
>   Mageia       mageia    nut    /etc/nut/           /etc/os-release
>   Manjaro      manjaro   nut    /etc/nut/           /etc/os-release
>   NetBSD       netbsd    nut ?  /etc/nut/ ?         uname -a
>   Oracle       ol        nut    /etc/ups/           /etc/os-release
>   OpenBSD      openbsd   ups    /etc/nut/           uname -a
>   OpenSUSE     opensuse  upsd   /etc/ups/           /etc/os-release
>   Raspbian     raspbian  nut    /etc/nut/           /etc/os-release
>   Red Hat      rhel      nut    /etc/ups/           /etc/os-release
>   Slackware    slackware nut    /etc/nut/           /etc/os-release
>   SUSE         sles      upsd   /etc/ups/           /etc/os-release
>   SUSE+SAP     sles_sap  upsd   /etc/ups/           /etc/os-release
>   Synology     synology  root ? /usr/syno/etc/nut/  uname -a
>   Ubuntu       ubuntu    nut    /etc/nut/           /etc/os-release
>
> FreeNAS identifies itself in /etc/os-release as FreeBSD.
>
> The IPFire wiki suggests user nutmon for upsmon but makes no mention of
> upsd.
>
> There is a formatted version of the table at
> http://rogerprice.org/NUT/ConfigExamples.A5.pdf#section.22 Chapter 22.
>
> I would be very pleased to hear of errors or omissions in this
> table.
>
> Roger
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20201126/98d215ca/attachment.html>


More information about the Nut-upsuser mailing list