Mailing List Archive

1 2 3  View All
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>
>> Ben <bkamen@benjammin.net> wrote:
>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>
> However...
>
> Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
>
> The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
>
> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.

I am not trolling, or standing in a copper vase full of water on a mountain top during a thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
I find it to be different
Not particually hard to learn
Quite nice in principal, being all-in-one-place and consistant
(My RockPi 4 does xxx on boot, ah systemd stuff)
James
PS well 2 places, /etc/systemd /usr/lib/systemd
PPS and yup in context of mythtv
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 8:05 PM, James Linder wrote:
>
>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>
>>> Ben <bkamen@benjammin.net> wrote:
>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>
>> However...
>>
>> Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>
>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
>>
>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
> I am not trolling, or standing in a copper vase full of water on a mountain top during a thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
> I find it to be different
> Not particually hard to learn
> Quite nice in principal, being all-in-one-place and consistant
> (My RockPi 4 does xxx on boot, ah systemd stuff)
> James
> PS well 2 places, /etc/systemd /usr/lib/systemd
> PPS and yup in context of mythtv

Here is my issue with it - when it fails, it fails in really stupid ways
that can be hard to figure out and fix.

For example, say you have a second non-system disk that you store
recordings or random things on (to keep the MythTV link).  Nothing on
the OS or even the users truly depend on, and it's mounted under /mnt or
/media.

Disk fail?  You remove it to copy the data onto another computer? 
Systemd will prevent the whole system from booting. It'll just hang
forever.  You need to boot a usb stick or figure out how to you
systemrescue to comment out the offending disk in fstab and reboot the
system.  Assuming you figure out that the disk failed.

Systemrescue (or whatever it's called) isn't as intuitive as one might
think - and if you don't have a computer to search the right commands
on, you are toast.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
> On 16 Dec 2020, at 11:11 am, Jeremy D. Eiden <theonlyrealperson@gmail.com> wrote:
>
>
> On 12/15/20 8:05 PM, James Linder wrote:
>>
>>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>>
>>>> Ben <bkamen@benjammin.net> wrote:
>>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
>>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>>
>>> However...
>>>
>>> Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>>
>>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
>>>
>>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>> I am not trolling, or standing in a copper vase full of water on a mountain top during a thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
>> I find it to be different
>> Not particually hard to learn
>> Quite nice in principal, being all-in-one-place and consistant
>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>> James
>> PS well 2 places, /etc/systemd /usr/lib/systemd
>> PPS and yup in context of mythtv
>
> Here is my issue with it - when it fails, it fails in really stupid ways that can be hard to figure out and fix.
>
> For example, say you have a second non-system disk that you store recordings or random things on (to keep the MythTV link). Nothing on the OS or even the users truly depend on, and it's mounted under /mnt or /media.
>
> Disk fail? You remove it to copy the data onto another computer? Systemd will prevent the whole system from booting. It'll just hang forever. You need to boot a usb stick or figure out how to you systemrescue to comment out the offending disk in fstab and reboot the system. Assuming you figure out that the disk failed.
>
> Systemrescue (or whatever it's called) isn't as intuitive as one might think - and if you don't have a computer to search the right commands on, you are toast.

Jeremy

After 1 painfull experience would you not

UUID=414c4207-f0b8-40d3-98e9-73be1dd3f867 /backup ext4 defaults,nofail 0 2

which boils down to ‘I’m being silly’ so ‘I don’t like systemd’

Again I’m offering a <smile>, I’m trying to learn something not wade into the SysV vs systemd debate
James

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>
> On 12/15/20 8:05 PM, James Linder wrote:
>>
>>> On 16 Dec 2020, at 7:07 am, Mike Perkins
>>> <mikep@randomtraveller.org.uk> wrote:
>>>
>>>> Ben <bkamen@benjammin.net> wrote:
>>>>> I'm wondering who is using what for their home servers for MythTV
>>>>> (and Plex) on the same box.
>>>> Can't speak for the non-Myth stuff, but my backend and frontends
>>>> all run Devuan now - what Debian would be if they'd not succumbed
>>>> to the dark side of systemd.
>>> I have tried Devuan and it would indeed, be suitable for myth front
>>> and backends.
>>>
>>> However...
>>>
>>> Despite telling you during installation that "everything is your
>>> choice" the default install desktop is effectively forced to be
>>> xfce, whereas I prefer LXDE.
>>>
>>> The "debootstrap" code was seriously borked when I tried it, and you
>>> could not install the same version in, for example, a VM as the
>>> version you were running, only the 'next' version. WTF? That killed
>>> using it for a KVM server stone dead.
>>>
>>> As I also run LTSP here, and debootstrap is used for the clients,
>>> that was a no-no too. I understand that the 'new' version of LTSP
>>> will work properly, haven't tried that on Devuan lately.
>> I am not trolling, or standing in a copper vase full of water on a
>> mountain top during a thunderstorm saying all gods are bastards
>> (Terry Pratchette) but why the angst about systemd?
>> I find it to be different
>> Not particually hard to learn
>> Quite nice in principal, being all-in-one-place and consistant
>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>> James
>> PS well 2 places, /etc/systemd /usr/lib/systemd
>> PPS and yup in context of mythtv
>
> Here is my issue with it - when it fails, it fails in really stupid
> ways that can be hard to figure out and fix.
>
> For example, say you have a second non-system disk that you store
> recordings or random things on (to keep the MythTV link).  Nothing on
> the OS or even the users truly depend on, and it's mounted under /mnt
> or /media.
>
> Disk fail?  You remove it to copy the data onto another computer?
> Systemd will prevent the whole system from booting. It'll just hang
> forever.  You need to boot a usb stick or figure out how to you
> systemrescue to comment out the offending disk in fstab and reboot the
> system.  Assuming you figure out that the disk failed.
>
> Systemrescue (or whatever it's called) isn't as intuitive as one might
> think - and if you don't have a computer to search the right commands
> on, you are toast.

Google finds this at https://wiki.archlinux.org/index.php/fstab. This
article is also cited as a solution on multiple other web sites:

External devices that are to be mounted when present but ignored if
absent may require the|nofail|option. This prevents errors being
reported at boot. For example:

/etc/fstab

/dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms 0 2

The|nofail|option is best combined with
the|x-systemd.device-timeout|option. This is because the default device
timeout is 90 seconds, so a disconnected external device with
only|nofail|will make your boot take 90 seconds longer, unless you
reconfigure the timeout as shown. Make sure not to set the timeout to 0,
as this translates to infinite timeout.

--
David King
dave at daveking dot com


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 9:47 PM, David King wrote:
> On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>>
>> On 12/15/20 8:05 PM, James Linder wrote:
>>>
>>>> On 16 Dec 2020, at 7:07 am, Mike Perkins
>>>> <mikep@randomtraveller.org.uk> wrote:
>>>>
>>>>> Ben <bkamen@benjammin.net> wrote:
>>>>>> I'm wondering who is using what for their home servers for MythTV
>>>>>> (and Plex) on the same box.
>>>>> Can't speak for the non-Myth stuff, but my backend and frontends
>>>>> all run Devuan now - what Debian would be if they'd not succumbed
>>>>> to the dark side of systemd.
>>>> I have tried Devuan and it would indeed, be suitable for myth front
>>>> and backends.
>>>>
>>>> However...
>>>>
>>>> Despite telling you during installation that "everything is your
>>>> choice" the default install desktop is effectively forced to be
>>>> xfce, whereas I prefer LXDE.
>>>>
>>>> The "debootstrap" code was seriously borked when I tried it, and
>>>> you could not install the same version in, for example, a VM as the
>>>> version you were running, only the 'next' version. WTF? That killed
>>>> using it for a KVM server stone dead.
>>>>
>>>> As I also run LTSP here, and debootstrap is used for the clients,
>>>> that was a no-no too. I understand that the 'new' version of LTSP
>>>> will work properly, haven't tried that on Devuan lately.
>>> I am not trolling, or standing in a copper vase full of water on a
>>> mountain top during a thunderstorm saying all gods are bastards
>>> (Terry Pratchette) but why the angst about systemd?
>>> I find it to be different
>>> Not particually hard to learn
>>> Quite nice in principal, being all-in-one-place and consistant
>>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>>> James
>>> PS well 2 places, /etc/systemd /usr/lib/systemd
>>> PPS and yup in context of mythtv
>>
>> Here is my issue with it - when it fails, it fails in really stupid
>> ways that can be hard to figure out and fix.
>>
>> For example, say you have a second non-system disk that you store
>> recordings or random things on (to keep the MythTV link). Nothing on
>> the OS or even the users truly depend on, and it's mounted under /mnt
>> or /media.
>>
>> Disk fail?  You remove it to copy the data onto another computer?
>> Systemd will prevent the whole system from booting. It'll just hang
>> forever.  You need to boot a usb stick or figure out how to you
>> systemrescue to comment out the offending disk in fstab and reboot
>> the system.  Assuming you figure out that the disk failed.
>>
>> Systemrescue (or whatever it's called) isn't as intuitive as one
>> might think - and if you don't have a computer to search the right
>> commands on, you are toast.
>
> Google finds this at https://wiki.archlinux.org/index.php/fstab. This
> article is also cited as a solution on multiple other web sites:
>
> External devices that are to be mounted when present but ignored if
> absent may require the|nofail|option. This prevents errors being
> reported at boot. For example:
>
> /etc/fstab
>
> /dev/sdg1        /media/backup    jfs
> nofail,x-systemd.device-timeout=1ms    0  2
>
> The|nofail|option is best combined with
> the|x-systemd.device-timeout|option. This is because the default
> device timeout is 90 seconds, so a disconnected external device with
> only|nofail|will make your boot take 90 seconds longer, unless you
> reconfigure the timeout as shown. Make sure not to set the timeout to
> 0, as this translates to infinite timeout.

Whelp, looks like I'll be doing some fstab editing tonight. :)

I honestly did not know about this option. My apologies.

Thank you David and James.

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
----- Original Message -----
> From: "David King" <dave@daveking.com>

>> Here is my issue with it - when it fails, it fails in really stupid
>> ways that can be hard to figure out and fix.
>>
>> For example, say you have a second non-system disk that you store
>> recordings or random things on (to keep the MythTV link).  Nothing on
>> the OS or even the users truly depend on, and it's mounted under /mnt
>> or /media.
>>
>> Disk fail?  You remove it to copy the data onto another computer?
>> Systemd will prevent the whole system from booting. It'll just hang
>> forever.  You need to boot a usb stick or figure out how to you
>> systemrescue to comment out the offending disk in fstab and reboot the
>> system.  Assuming you figure out that the disk failed.
>>
>> Systemrescue (or whatever it's called) isn't as intuitive as one might
>> think - and if you don't have a computer to search the right commands
>> on, you are toast.
>
> Google finds this at https://wiki.archlinux.org/index.php/fstab. This
> article is also cited as a solution on multiple other web sites:
>
> External devices that are to be mounted when present but ignored if
> absent may require the|nofail|option. This prevents errors being
> reported at boot. For example:
>
> /etc/fstab
>
> /dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms
> 0 2
>
> The|nofail|option is best combined with
> the|x-systemd.device-timeout|option. This is because the default device
> timeout is 90 seconds, so a disconnected external device with
> only|nofail|will make your boot take 90 seconds longer, unless you
> reconfigure the timeout as shown. Make sure not to set the timeout to 0,
> as this translates to infinite timeout.

Sure.

But you know what's even better?

Not trashing 40 years of Linux/Unix SA training for gratuitous crap put in
there for 1% or (way) less of running Linux systems. I to this day cannot
imaging what Lennart had on the 6 major distribution release managers that
he got them to bake that crap into them.

Me? Bitter?

No, why should I be bitter, just because some random out of nowhere obsoleted
in about 3 years what I'd spent 30 years getting good at? No motivation there
at all...

Cheers,
-- jr 'you may not be wading in, but I am' a
--
Jay R. Ashworth Baylink jra@baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://www.bcp38.info 2000 Land Rover DII
St Petersburg FL USA BCP38: Ask For It By Name! +1 727 647 1274
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:

>----- Original Message -----
>> From: "David King" <dave@daveking.com>
>
>>> Here is my issue with it - when it fails, it fails in really stupid
>>> ways that can be hard to figure out and fix.
>>>
>>> For example, say you have a second non-system disk that you store
>>> recordings or random things on (to keep the MythTV link).? Nothing on
>>> the OS or even the users truly depend on, and it's mounted under /mnt
>>> or /media.
>>>
>>> Disk fail?? You remove it to copy the data onto another computer?
>>> Systemd will prevent the whole system from booting. It'll just hang
>>> forever.? You need to boot a usb stick or figure out how to you
>>> systemrescue to comment out the offending disk in fstab and reboot the
>>> system.? Assuming you figure out that the disk failed.
>>>
>>> Systemrescue (or whatever it's called) isn't as intuitive as one might
>>> think - and if you don't have a computer to search the right commands
>>> on, you are toast.
>>
>> Google finds this at https://wiki.archlinux.org/index.php/fstab. This
>> article is also cited as a solution on multiple other web sites:
>>
>> External devices that are to be mounted when present but ignored if
>> absent may require the|nofail|option. This prevents errors being
>> reported at boot. For example:
>>
>> /etc/fstab
>>
>> /dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms
>> 0 2
>>
>> The|nofail|option is best combined with
>> the|x-systemd.device-timeout|option. This is because the default device
>> timeout is 90 seconds, so a disconnected external device with
>> only|nofail|will make your boot take 90 seconds longer, unless you
>> reconfigure the timeout as shown. Make sure not to set the timeout to 0,
>> as this translates to infinite timeout.
>
>Sure.
>
>But you know what's even better?
>
>Not trashing 40 years of Linux/Unix SA training for gratuitous crap put in
>there for 1% or (way) less of running Linux systems. I to this day cannot
>imaging what Lennart had on the 6 major distribution release managers that
>he got them to bake that crap into them.
>
>Me? Bitter?
>
>No, why should I be bitter, just because some random out of nowhere obsoleted
>in about 3 years what I'd spent 30 years getting good at? No motivation there
>at all...

You might want to reconsider that a little. I started out very
sceptical about systemd. And I still not a fan of the "one systemd to
rule them all" concept. But I have now used systemd quite a bit and
so far I have found that using systemd to run things is dramatically
better than init scripts. When you had to write an init script, that
was a mini-project on its own getting it to do everything needed - it
took ages. Using systemd to start a program is usually easy - just
add the options you want and it often works first time. And a huge
plus is that the program does not need to be written with a daemon
mode - in fact, running it as a daemon takes more effort with systemd
than running it as a normal program. I do not like the logs going
into journals so much though - that makes it difficult to access them
when booted from a live USB or PXE image to do repairs or discover why
things went wrong.

Over time systemd has got better too, with some of the niggly little
things fixed by new options. I really like just being able to now do
"systemctl edit" to create a new override file. And some things I
hate are things I can fix myself. Why on earth they thought that
having to type "systemctl" and "journalctl" all the time was a good
idea I have no clue. Commands that are used often should be short. So
I have aliased them to "sc" and "jc".

The option to have an early start / late shutdown root debug shell is
also extremely valuable when debugging startup and shutdown problems.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 16/12/2020 03:47, David King wrote:
> On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>>
>> On 12/15/20 8:05 PM, James Linder wrote:
>>>
>>>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>>>
>>>>> Ben <bkamen@benjammin.net> wrote:
>>>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what
>>>>> Debian would be if they'd not succumbed to the dark side of systemd.
>>>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>>>
>>>> However...
>>>>
>>>> Despite telling you during installation that "everything is your choice" the default install
>>>> desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>>>
>>>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same
>>>> version in, for example, a VM as the version you were running, only the 'next' version. WTF?
>>>> That killed using it for a KVM server stone dead.
>>>>
>>>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I
>>>> understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>>> I am not trolling, or standing in a copper vase full of water on a mountain top during a
>>> thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
>>> I find it to be different
>>> Not particually hard to learn
>>> Quite nice in principal, being all-in-one-place and consistant
>>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>>> James
>>> PS well 2 places, /etc/systemd /usr/lib/systemd
>>> PPS and yup in context of mythtv
>>
>> Here is my issue with it - when it fails, it fails in really stupid ways that can be hard to
>> figure out and fix.
>>
>> For example, say you have a second non-system disk that you store recordings or random things on
>> (to keep the MythTV link).  Nothing on the OS or even the users truly depend on, and it's mounted
>> under /mnt or /media.
>>
>> Disk fail?  You remove it to copy the data onto another computer? Systemd will prevent the whole
>> system from booting. It'll just hang forever.  You need to boot a usb stick or figure out how to
>> you systemrescue to comment out the offending disk in fstab and reboot the system.  Assuming you
>> figure out that the disk failed.
>>
>> Systemrescue (or whatever it's called) isn't as intuitive as one might think - and if you don't
>> have a computer to search the right commands on, you are toast.
>
> Google finds this at https://wiki.archlinux.org/index.php/fstab. This article is also cited as a
> solution on multiple other web sites:
>
> External devices that are to be mounted when present but ignored if absent may require
> the|nofail|option. This prevents errors being reported at boot. For example:
>
> /etc/fstab
>
> /dev/sdg1        /media/backup    jfs    nofail,x-systemd.device-timeout=1ms    0  2
>
> The|nofail|option is best combined with the|x-systemd.device-timeout|option. This is because the
> default device timeout is 90 seconds, so a disconnected external device with only|nofail|will make
> your boot take 90 seconds longer, unless you reconfigure the timeout as shown. Make sure not to set
> the timeout to 0, as this translates to infinite timeout.
>
I have to point out that your fstab entry has the rather sensible /dev/<device> attachment point,
whereas the usual definitions are installed with a UUID= option instead.

Sometimes when making up a test install I will go through and fix all those back to the (commented
out) /dev options but most of my boxes are left as default. This makes changing anything more of a
task than simply moving a HDD from one host to another.

Then there's the insane relabelling of NIC interfaces, which are *always* different each time. I
always forget and wonder why my new host has booted up with no network, and then have to go in and
manually edit /etc/network/interfaces.

...and heaven help you if you have more than one NIC! it *always* chooses the one that doesn't have
a cable in, and often doesn't even have a stanza in interfaces.

£0.02

--

Mike Perkins

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 15/12/2020 05:03, Ryan Novosielski wrote:
>>
>> So with that -- I'd like to hear from the group what people have been
>> happy with that's LTS-ish like CentOS was.
>
> To be honest, I'm a little surprised CentOS wasn't a huge pain in the neck for a MythTV server, given the age of the components.
>

You aren't wrong there.

fixes/31 still builds on Centos7, master however does not,
and so the next release (not due for a while yet) will drop support
for Centos7 (as well as debian stretch, which is due to EOL shortly
after the planned release date)

> I'd use (and do) Ubuntu LTS. I'll admit that I'm currently on a still-supported MythBuntu 16.04 (support ends next year), and I'm somewhat dreading going jumping to Ubuntu proper, but just because of the work involved, not because I don't think it will work.
>

The PPA's are great and auto built daily (if any changes are
committed)


Regards
Stuart
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Wed, 16 Dec 2020 10:08:10 +0000, you wrote:

>On 16/12/2020 03:47, David King wrote:
>> On 12/15/20 10:11 PM, Jeremy D. Eiden wrote:
>>>
>>> On 12/15/20 8:05 PM, James Linder wrote:
>>>>
>>>>> On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
>>>>>
>>>>>> Ben <bkamen@benjammin.net> wrote:
>>>>>>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
>>>>>> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what
>>>>>> Debian would be if they'd not succumbed to the dark side of systemd.
>>>>> I have tried Devuan and it would indeed, be suitable for myth front and backends.
>>>>>
>>>>> However...
>>>>>
>>>>> Despite telling you during installation that "everything is your choice" the default install
>>>>> desktop is effectively forced to be xfce, whereas I prefer LXDE.
>>>>>
>>>>> The "debootstrap" code was seriously borked when I tried it, and you could not install the same
>>>>> version in, for example, a VM as the version you were running, only the 'next' version. WTF?
>>>>> That killed using it for a KVM server stone dead.
>>>>>
>>>>> As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I
>>>>> understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>>>> I am not trolling, or standing in a copper vase full of water on a mountain top during a
>>>> thunderstorm saying all gods are bastards (Terry Pratchette) but why the angst about systemd?
>>>> I find it to be different
>>>> Not particually hard to learn
>>>> Quite nice in principal, being all-in-one-place and consistant
>>>> (My RockPi 4 does xxx on boot, ah systemd stuff)
>>>> James
>>>> PS well 2 places, /etc/systemd /usr/lib/systemd
>>>> PPS and yup in context of mythtv
>>>
>>> Here is my issue with it - when it fails, it fails in really stupid ways that can be hard to
>>> figure out and fix.
>>>
>>> For example, say you have a second non-system disk that you store recordings or random things on
>>> (to keep the MythTV link).? Nothing on the OS or even the users truly depend on, and it's mounted
>>> under /mnt or /media.
>>>
>>> Disk fail?? You remove it to copy the data onto another computer? Systemd will prevent the whole
>>> system from booting. It'll just hang forever.? You need to boot a usb stick or figure out how to
>>> you systemrescue to comment out the offending disk in fstab and reboot the system.? Assuming you
>>> figure out that the disk failed.
>>>
>>> Systemrescue (or whatever it's called) isn't as intuitive as one might think - and if you don't
>>> have a computer to search the right commands on, you are toast.
>>
>> Google finds this at https://wiki.archlinux.org/index.php/fstab. This article is also cited as a
>> solution on multiple other web sites:
>>
>> External devices that are to be mounted when present but ignored if absent may require
>> the|nofail|option. This prevents errors being reported at boot. For example:
>>
>> /etc/fstab
>>
>> /dev/sdg1??????? /media/backup??? jfs??? nofail,x-systemd.device-timeout=1ms??? 0? 2
>>
>> The|nofail|option is best combined with the|x-systemd.device-timeout|option. This is because the
>> default device timeout is 90 seconds, so a disconnected external device with only|nofail|will make
>> your boot take 90 seconds longer, unless you reconfigure the timeout as shown. Make sure not to set
>> the timeout to 0, as this translates to infinite timeout.
>>
>I have to point out that your fstab entry has the rather sensible /dev/<device> attachment point,
>whereas the usual definitions are installed with a UUID= option instead.
>
>Sometimes when making up a test install I will go through and fix all those back to the (commented
>out) /dev options but most of my boxes are left as default. This makes changing anything more of a
>task than simply moving a HDD from one host to another.

There is a much better option these days - label the partitions and
use the LABEL= option in fstab. That makes it easy to move drives
around between PCs, and to work out which drive is which when you have
lots of them (my MythTV box has 16 hard drives and an NVMe SSD). You
can then also use /dev/disk/by-label/<partition label> when you need
to do fsck, for example.

And the /dev/<device> names are not sensible to use at all. If you
plug in USB hard drives, that often shifts those names for any drives
on a secondary controller on the motherboard as the USB controller
gets enumerated by the kernel before the secondary SATA controller.
There are probably motherboards out there where at least one USB
controller is enumerated before the main SATA controller.

>Then there's the insane relabelling of NIC interfaces, which are *always* different each time. I
>always forget and wonder why my new host has booted up with no network, and then have to go in and
>manually edit /etc/network/interfaces.

Yes, I always manually set up the interface names to be eth0, eth1,
... again as one of the first jobs I do on a new install. Except that
the way I have been doing that with udev rules is currently being
obsoleted as apparently it also suffers from race conditions. So I am
expecting to find it will be broken on the next upgrade of Ubuntu.

>...and heaven help you if you have more than one NIC! it *always* chooses the one that doesn't have
>a cable in, and often doesn't even have a stanza in interfaces.

Yes, it is best to make sure the first Ethernet port is tied down
before installing a second one. One useful trick is to enable the
systemd option for an early debug root console:

systemctl enable debug-shell.service

or "systemd.debug-shell=1" on the kernel command line. If you do that
when you are changing things to tie down the Ethernet ports, if you
get it wrong and lose the network connection or even do something that
makes boot up take ages or fail (90 seconds timeout per hard drive,
for example), then you can just do Ctrl-Alt-F9 and edit things and
reboot - much easier than having to boot from a live image or PXE to
fix it.

>?0.02
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Tue, Dec 15, 2020, at 21:05, James Linder wrote:
>
> > On 16 Dec 2020, at 7:07 am, Mike Perkins <mikep@randomtraveller.org.uk> wrote:
> >
> >> Ben <bkamen@benjammin.net> wrote:
> >>> I'm wondering who is using what for their home servers for MythTV (and Plex) on the same box.
> >> Can't speak for the non-Myth stuff, but my backend and frontends all run Devuan now - what Debian would be if they'd not succumbed to the dark side of systemd.
> > I have tried Devuan and it would indeed, be suitable for myth front and backends.
> >
> > However...
> >
> > Despite telling you during installation that "everything is your choice" the default install desktop is effectively forced to be xfce, whereas I prefer LXDE.
> >
> > The "debootstrap" code was seriously borked when I tried it, and you could not install the same version in, for example, a VM as the version you were running, only the 'next' version. WTF? That killed using it for a KVM server stone dead.
> >
> > As I also run LTSP here, and debootstrap is used for the clients, that was a no-no too. I understand that the 'new' version of LTSP will work properly, haven't tried that on Devuan lately.
>
> I am not trolling, or standing in a copper vase full of water on a
> mountain top during a thunderstorm saying all gods are bastards (Terry
> Pratchette) but why the angst about systemd?
> I find it to be different
> Not particually hard to learn
> Quite nice in principal, being all-in-one-place and consistant
> (My RockPi 4 does xxx on boot, ah systemd stuff)
> James
> PS well 2 places, /etc/systemd /usr/lib/systemd
> PPS and yup in context of mythtv

Are you sure it's really two places? I was under the impression that you could do everything in /etc, and should, and that the system stuff was shipped in the other places, but it's been awhile since I wrote my own unit file.

I totally agree; systemd is almost entirely superior to the old method. The first time you have to tweak a vendor-supplied init, the reason becomes immediately clear. For example, we have some systems that boot without a /var and need some directories created. We do an overlay that checks for/creates the relevant directories. With an init script, you have to patch the script each time if that's not something the vendor provides. On stateless systems in particular, it's far superior, but the ability to configure complicated dependencies is great on any system (so long as you take the few minutes to figure it out).

--
Ryan Novosielski
ryan@novosielski.com
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 2020-12-16 4:31 a.m., Stephen Worthington wrote:
> On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:

>> No, why should I be bitter, just because some random out of nowhere obsoleted
>> in about 3 years what I'd spent 30 years getting good at? No motivation there
>> at all...
>
> You might want to reconsider that a little. I started out very
> sceptical about systemd. And I still not a fan of the "one systemd to
> rule them all" concept. But I have now used systemd quite a bit and
> so far I have found that using systemd to run things is dramatically
> better than init scripts. When you had to write an init script, that
> was a mini-project on its own getting it to do everything needed - it
> took ages. Using systemd to start a program is usually easy - just
> add the options you want and it often works first time. And a huge
> plus is that the program does not need to be written with a daemon
> mode - in fact, running it as a daemon takes more effort with systemd
> than running it as a normal program. I do not like the logs going
> into journals so much though - that makes it difficult to access them
> when booted from a live USB or PXE image to do repairs or discover why
> things went wrong.
>
> Over time systemd has got better too, with some of the niggly little
> things fixed by new options. I really like just being able to now do
> "systemctl edit" to create a new override file. And some things I
> hate are things I can fix myself. Why on earth they thought that
> having to type "systemctl" and "journalctl" all the time was a good
> idea I have no clue. Commands that are used often should be short. So
> I have aliased them to "sc" and "jc".
>
> The option to have an early start / late shutdown root debug shell is
> also extremely valuable when debugging startup and shutdown problems.

So what you are saying is that it was NOT actually ready for prime time
when it was released. Which many people complained about. It was a
replay of pulseaudio, which also was not ready for prime time when released.

Both are quite a bit better now, after huge amounts of effort by lots of
people to fix the stupid design decisions made by LP, except that
nothing has been done for the journal logs being incomprehensible and
not available *unless systemd is running*...

G

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
----- Original Message -----
> From: "R. G. Newbury" <newbury@mandamus.org>

> So what you are saying is that it was NOT actually ready for prime time
> when it was released. Which many people complained about. It was a
> replay of pulseaudio, which also was not ready for prime time when released.
>
> Both are quite a bit better now, after huge amounts of effort by lots of
> people to fix the stupid design decisions made by LP, except that
> nothing has been done for the journal logs being incomprehensible and
> not available *unless systemd is running*...

So you can't even look at the syslog to see why systemd broke, if it breaks?

Yeah; total non-starter.

Cheers,
-- jra
--
Jay R. Ashworth Baylink jra@baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://www.bcp38.info 2000 Land Rover DII
St Petersburg FL USA BCP38: Ask For It By Name! +1 727 647 1274
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Wed, 16 Dec 2020 21:38:49 -0500, you wrote:

>On 2020-12-16 4:31 a.m., Stephen Worthington wrote:
>> On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:
>
>>> No, why should I be bitter, just because some random out of nowhere obsoleted
>>> in about 3 years what I'd spent 30 years getting good at? No motivation there
>>> at all...
>>
>> You might want to reconsider that a little. I started out very
>> sceptical about systemd. And I still not a fan of the "one systemd to
>> rule them all" concept. But I have now used systemd quite a bit and
>> so far I have found that using systemd to run things is dramatically
>> better than init scripts. When you had to write an init script, that
>> was a mini-project on its own getting it to do everything needed - it
>> took ages. Using systemd to start a program is usually easy - just
>> add the options you want and it often works first time. And a huge
>> plus is that the program does not need to be written with a daemon
>> mode - in fact, running it as a daemon takes more effort with systemd
>> than running it as a normal program. I do not like the logs going
>> into journals so much though - that makes it difficult to access them
>> when booted from a live USB or PXE image to do repairs or discover why
>> things went wrong.
>>
>> Over time systemd has got better too, with some of the niggly little
>> things fixed by new options. I really like just being able to now do
>> "systemctl edit" to create a new override file. And some things I
>> hate are things I can fix myself. Why on earth they thought that
>> having to type "systemctl" and "journalctl" all the time was a good
>> idea I have no clue. Commands that are used often should be short. So
>> I have aliased them to "sc" and "jc".
>>
>> The option to have an early start / late shutdown root debug shell is
>> also extremely valuable when debugging startup and shutdown problems.
>
>So what you are saying is that it was NOT actually ready for prime time
>when it was released. Which many people complained about. It was a
>replay of pulseaudio, which also was not ready for prime time when released.
>
>Both are quite a bit better now, after huge amounts of effort by lots of
>people to fix the stupid design decisions made by LP, except that
>nothing has been done for the journal logs being incomprehensible and
>not available *unless systemd is running*...
>
>G

Nothing as big and complex as systemd would ever be expected to be
perfect on first release. It worked well when I first met it, which
was not what I expected, and the later fixes and refinements were
welcome. Yes, the journal logs problem is not something I like, but I
can live with it. If you have to access the journals from a USB or
DVD or PXE live boot, you can, it is just really annoying. I normally
set up my PCs so that they have two boot partitions, one for the main
system and one for doing repairs and maintenance. That helps quite a
bit, just as it helped with init script problems.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On Thu, 17 Dec 2020 02:48:15 +0000 (UTC), you wrote:

>----- Original Message -----
>> From: "R. G. Newbury" <newbury@mandamus.org>
>
>> So what you are saying is that it was NOT actually ready for prime time
>> when it was released. Which many people complained about. It was a
>> replay of pulseaudio, which also was not ready for prime time when released.
>>
>> Both are quite a bit better now, after huge amounts of effort by lots of
>> people to fix the stupid design decisions made by LP, except that
>> nothing has been done for the journal logs being incomprehensible and
>> not available *unless systemd is running*...
>
>So you can't even look at the syslog to see why systemd broke, if it breaks?
>
>Yeah; total non-starter.

In Ubuntu syslog still exists, as does kern.log. But, as before
systemd, there are things that are not in syslog but in individual log
files. And now some of those are only available as systemd journals -
it depends on the particular program and what options are used with
it. And systemd's output is usually only in journal files. Which you
can access externally by booting a live USB/DVD/PXE image using a
similar version of systemd and using journalctl from there, but it is
a pain. However, there are various ways of debugging systemd problems
that do not need a live boot. The one I use normally is to enable an
early start / late stop root console on Ctrl-Alt-F9 and use that to do
systemd commands when the system fails to boot. That also works when
it fails to shut down properly. I find that is easier to use than
what you used to have to do with init scripts. And in Ubuntu 20.04,
systemd seems to be better set up so that you do not get boot failures
that you did with earlier versions. They have got the timeouts and
dependencies better organised. And if you are using a fast NVMe SSD,
the parallelism of boot up is wonderful - the boot times are very
fast.

So, yes, systemd is different. There is a learning curve, but it is
not too bad as the documentation is quite good and there is plenty of
help on the net. Yes, systemd does have some annoyances. But its
advantages far outweigh its disadvantages. I would not want to ever
go back to init scripts - they are very, very painful.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
On 12/15/20 3:14 PM, R. G. Newbury wrote:
> On 2020-12-15 2:39 a.m., Bob Long wrote:
>> Ben wrote on 14/12/20 6:24 pm:
>>> Hey all,
>>>
>>> I figured I'd ask here because the main goals of updating my server
>>> from CentOS 6 to --- well, no longer CentOS 8 since it's no longer
>>> going to be what CentOS was...
>>>
>>> I'm wondering who is using what for their home servers for MythTV
>>> (and Plex) on the same box.
>>>
>>> I also use desktop apps on this same system as well as run some
>>> VirtualBox VMs (Windows and Raspbian)
>>>
>>> So with that -- I'd like to hear from the group what people have
>>> been happy with that's LTS-ish like CentOS was.
>
> I have been running mythtv on Fedora since Fedora 4. Until myth v.28 I
> had always compiled from master as originally there were no good
> repos, and then because it was easier for testing the imon kernel
> module (I was an alpha level tester: code by Jarrod Wilson).
> As a bit of a lark, I tried rpmfusion at v28. No problems (only a
> slight loss of flexibility in removing extensions I did not want:
> slight size increase as a result but irrelevant really).
>
> Fedora uses the same structural setup as RHEL and Centos, so
> everything will be exactly where you expect it to be.
> On the odd occasion I find myself delving into a Ubuntu based setup I
> am always slightly lost as to where things are! Not a big deal, but we
> do get used to where things are located. Like getting in a rental car
> and trying to find the windshield wipers in the dark. On the upside,
> you will *not* have to learn new names for any of the programs or
> prerequisite libraries you want to install.
>
> One of the recent Fedora kernels was named as a LTS if that is a
> concern. If your box is a standalone BE/FE then that hardly matters. I
> have a mythbox running Fedora 28. It's not obsolete although the OS is
> old.
>
> Moving up to Fedora 32 or 33 will give you a BIG jump in the kernel.
> Although some denigratre Fedora, it's "cutting edge" is actually
> incredibly stable for something like mythtv.

I, too, have used Fedora since FC4.  Upgrading every 6 months is a bit
much, so I get everything working, then leave it alone until I need the
new technology and then start with a fresh install.  I use CentOS at
work, but sounds like that may be changing soon. But as Geoff points
out, it's nice knowing where everything is.

That said, non-Ubuntu distros may not fit into the Ubuntu model and
require a bit more knowledge that I only learned recently when V31
forced upgrading to XMLTV format for listings.  Ubuntu (and others?)
assume a real mythtv user, with login abilities and privileges and, most
importantly, a home directory where the mythtv user can place
configuration files that are accessible to mythbackend running as user
mythtv.  mythtvsetup is run as user mythtv, as well.  Fedora, being a
RedHat descendant, is more server-like and services (mythbackend) run as
non-login users with user mythtv's home directory in /var/home and
configuration in /etc.  This makes setting up the XMLTV stuff a little
different than procedures described in most of the available
documentation. Once you understand that and know what structure the
MythTV apps expect, it's easy to make the Fedora structure fit into the
Ubuntu mold.

Dave D.




_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
I should perhaps comment that the Death of CentOS may have been 'greatly
exaggerated' with el7 support still supposedly available until 2024.

I'm running MythTV master in an el7-near-clone, although that does
entail quite a lot of hoop-jumping and use of alternative repos. I note
that the MythTV test builds for el7, which probably used vanilla CentOS
7 and were routinely failing, have now been discontinued.

Much of the computing in the particle physics community, in which
experiments often have overall lives of many years, has been built
around el variants. Of course there isn't much emphasis on TV hardware,
and general availability might not be automatic.

Here's the text of an announcement on the Scientific Linux users' list
today:
> CERN and Fermilab acknowledge the recent decision to shift focus
from CentOS Linux to CentOS Stream, and the sudden change of the end of
life of the CentOS 8 release. This may entail significant consequences
for the worldwide particle physics community. We are currently
investigating together the best path forward. We will keep you informed
about any developments in this area during Q1 2021.

John P




_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Recommended Linux Distro post CentOS [ In reply to ]
Stephen Worthington wrote:
> On Wed, 16 Dec 2020 04:25:09 +0000 (UTC), you wrote:
>
> >No, why should I be bitter, just because some random out of nowhere obsoleted
> >in about 3 years what I'd spent 30 years getting good at? No motivation there
> >at all...
>
> You might want to reconsider that a little. I started out very
> sceptical about systemd. And I still not a fan of the "one systemd to
> rule them all" concept. But I have now used systemd quite a bit and
> so far I have found that using systemd to run things is dramatically
> better than init scripts.

Except -- and this is actually really big -- using daemontools /
runit / supervisor / similar init systems are also much better
than both sysvinit and systemd. And all of those
daemontools-style systems offer smooth integration with the
PID=1 portion of sysvinit, and let you move over services one at
a time.

The objection is not "systemd isn't better than sysvinit". The
objection is "systemd isn't enough better than sysvinit to put
up with the crap that goes along with it". And, also: "systemd
wants to take over everything, making things worse along the
way".


> When you had to write an init script, that
> was a mini-project on its own getting it to do everything needed - it
> took ages.

Here's a typical daemontools-style daemon startup:

--
#!/bin/bash
USER=minecraft
PORT=33055
MAXMEM=2048M
STARTMEM=1024M

cd /opt/minecraft
exec 2>&1
exec setuidgid $USER /usr/bin/java -Xmx$MAXMEM -Xms$STARTMEM -jar \
/opt/minecraft/server.jar --nogui --port $PORT
--

That's going to keep one copy of the minecraft server running,
restarting it if it dies, until the system shuts down or it gets
a signal telling it to stop the daemon.

> I do not like the logs going
> into journals so much though - that makes it difficult to access them
> when booted from a live USB or PXE image to do repairs or discover why
> things went wrong.

daemontools-style systems pipe all the output of their programs
into ordinary timestamped, auto-rotated logfiles -- but you can
change that, if you want.

daemontools was written in 2001. runit, a mostly-compatible
reimplementation which adds a PID=1 init, was written in 2004 and has
had a very stable release for the last 6 years. There's an
actively maintained full init system with the same properties
called nosh: https://jdebp.eu/Softwares/nosh/


Every single one of these is simpler to understand, easier to
debug, and less omnivorous than systemd.

-dsr-
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
Yes I know SysVInit has it's problems. But for most people it does the job just fine.
And there are alternatives that deal with those problems without applying a scorched earth policy.
And which are both simpler and proven.


Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:

> When you had to write an init script, that was a mini-project on its own

It doesn't have to be

> getting it to do everything needed - it took ages. Using systemd to start a program is usually easy - just
> add the options you want and it often works first time.

Sorry, you lost me with "usually" and "often". That's not good enough.
With an init script it will always work for the simple reason that you have complete control over what it does. What systemd has done is abstract a lot of what normally ends up in init scripts into it's internal code - meaning that if what they offer doesn't do exactly what you want, then it's "somewhat harder" to tweak things.
Just to be clear what I'm pointing out here - systemd doesn't actually remove any of that complexity (especially when it comes to service startup sequencing), it tucks it away where you cannot get at it when that level of control is actually what you need.

But apart from that, a major objection I have is the way it's being forced on people regardless - and hence needing whole new distributions (e.g. Devuan) in order to keep other choices available. The "we don't care if SysVInit works for you, we aren't going to support it - because systemd" mentality - backed up by a policy of changing stuff in such a way that makes life harder for devs who do want to keep that choice.

And not to mention, the downright arrogance of a lead developer who has a clear policy of break whatever suits him, whenever it suits him, and leave others to work around whatever it is he's broken this week.

lastly, do you really want to trust your system, your PID1 which **WILL** bring down your whole system in a very messy way if/when it goes wrong, to coders with such good skills that Linus told at least one of them to "f-off and stop putting sh*t in the kernel" ?

If I wanted a system where things changed "because we wanted to change them" for no good reason, where users are alpha testers for buggy code, where large parts of the system had been morphed into a hairball of interdependent code, where user input isn't welcome, well I'd be running Windows. But I don't, which is why I run Devuan (or pre-systemd Debian for those that still need major upgrades) on my servers.



Dan Ritter <dsr-myth@randomstring.org> wrote:

> Except -- and this is actually really big -- using daemontools /
> runit / supervisor / similar init systems are also much better
> than both sysvinit and systemd. And all of those
> daemontools-style systems offer smooth integration with the
> PID=1 portion of sysvinit, and let you move over services one at
> a time.
>
> The objection is not "systemd isn't better than sysvinit". The
> objection is "systemd isn't enough better than sysvinit to put
> up with the crap that goes along with it". And, also: "systemd
> wants to take over everything, making things worse along the
> way".

Well that's a lot better put than mine.



Simon

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Fri, 18 Dec 2020 10:51:28 +0000, you wrote:

>Yes I know SysVInit has it's problems. But for most people it does the job just fine.
>And there are alternatives that deal with those problems without applying a scorched earth policy.
>And which are both simpler and proven.
>
>
>Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:
>
>> When you had to write an init script, that was a mini-project on its own
>
>It doesn't have to be
>
>> getting it to do everything needed - it took ages. Using systemd to start a program is usually easy - just
>> add the options you want and it often works first time.
>
>Sorry, you lost me with "usually" and "often". That's not good enough.
>With an init script it will always work for the simple reason that you have complete control over what it does. What systemd has done is abstract a lot of what normally ends up in init scripts into it's internal code - meaning that if what they offer doesn't do exactly what you want, then it's "somewhat harder" to tweak things.
>Just to be clear what I'm pointing out here - systemd doesn't actually remove any of that complexity (especially when it comes to service startup sequencing), it tucks it away where you cannot get at it when that level of control is actually what you need.

You completely missed my point. When I said "usually" and "often" I
meant the that the very first time you try the .service file you have
just written, it works. That never happens with init scripts, except
when you get to copy an existing one. Init scripts are too complex.

And systemd does indeed reduce the complexity of service startup
sequencing - it does that by allowing you to specify the relationships
you want and let it do the actual sequencing. If I need some special
control, that is usually easy to do by writing a separate .service
file and having things start only after that .service has started
successfully.

Have you actually tried using systemd and had a situation where you
needed to do something that was simple in an init script and could not
be done in systemd? I certainly have not. The init scripts I have
worked on generally did only fairly standard things, and took a lot of
code to do it. Mode code generally equals more bugs, even if they are
just simple typos. If you are complaining that systemd is hiding
things because you have seen other people complain about that, then
please just try systemd for yourself and you will likely find that it
is not actually a problem.

>But apart from that, a major objection I have is the way it's being forced on people regardless - and hence needing whole new distributions (e.g. Devuan) in order to keep other choices available. The "we don't care if SysVInit works for you, we aren't going to support it - because systemd" mentality - backed up by a policy of changing stuff in such a way that makes life harder for devs who do want to keep that choice.

Yes, I can see your point about it being forced on people. But the
people making that choice to put it into the distros they control have
actually evaluated systemd and think it is better than what they had
before.

>And not to mention, the downright arrogance of a lead developer who has a clear policy of break whatever suits him, whenever it suits him, and leave others to work around whatever it is he's broken this week.

I am afraid I have not been following the politics of systemd, just
working with it in Ubuntu and a little Debian. I have not had any
instances of things being broken and my having to fix them after they
were previously working. I have had it the other way around where
things did not actually work as documented, so I had to do a
workaround, and then in a new version the problem was fixed. I once
had that happen where I found a problem one day and the next day when
I sat down to fix it, there was a new version of systemd out that had
just fixed it. I was scratching my head for a while about that, until
I remembered that I had seen new systemd packages installing.

>lastly, do you really want to trust your system, your PID1 which **WILL** bring down your whole system in a very messy way if/when it goes wrong, to coders with such good skills that Linus told at least one of them to "f-off and stop putting sh*t in the kernel" ?

Again, I can only say from my experience that I have not had PID 1
die. Systemd has been solid for me. I have never looked at the code
of systemd or any of the older PID 1 systems when I was running them.
I had no need to, they just worked. But until systemd, I always hated
having to do anything to do with getting a service working - it was
always trouble. With systemd, now that I have learnt enough about it,
I am quite happy to write or modify unit files. It does not take long
and then works nicely.

I am guessing that because my normal use of systemd is in Ubuntu and
the Ubuntu developers do quality assurance on their core packages, if
there were nasty new problems in new systemd updates, they never got
to me as Ubuntu never released that version, or patched it themselves.

>If I wanted a system where things changed "because we wanted to change them" for no good reason, where users are alpha testers for buggy code, where large parts of the system had been morphed into a hairball of interdependent code, where user input isn't welcome, well I'd be running Windows. But I don't, which is why I run Devuan (or pre-systemd Debian for those that still need major upgrades) on my servers.

That is fine, you can make your own choices. But I do think you
actually should really try a systemd based distro for a bit, before
making that choice. It really does work quite well. For me, init
scripts were just a bad experience. Systemd is, of course, completely
different to init scripts. Its philosophy is utterly different - it
is a paradigm shift from init scripts. And it does have a learning
curve. But once you get going, you do not want to ever go back to
init scripts.

Having your init script skills obsoleted is a bit of a pain, but that
is life. I did at one point early in my career have to write a couple
of COBOL programs for a mainframe. And some FORTRAN, for a mainframe
and a minicomputer. Then I wrote a lot of different sorts of
assembler for many years before C became available and viable for
embedded processors. I am very happy to have better programming
languages to work with than COBOL and FORTRAN. My considerable
assembler skills have not been used for quite a few years now, but
that is generally a good thing. I am much more productive writing C
and C++ for embedded processors. Systemd versus init scripts is much
the same thing. I can be tremendously more productive writing a
systemd unit in half an hour versus messing around all day getting an
init script working properly.

>
>Dan Ritter <dsr-myth@randomstring.org> wrote:
>
>> Except -- and this is actually really big -- using daemontools /
>> runit / supervisor / similar init systems are also much better
>> than both sysvinit and systemd. And all of those
>> daemontools-style systems offer smooth integration with the
>> PID=1 portion of sysvinit, and let you move over services one at
>> a time.
>>
>> The objection is not "systemd isn't better than sysvinit". The
>> objection is "systemd isn't enough better than sysvinit to put
>> up with the crap that goes along with it". And, also: "systemd
>> wants to take over everything, making things worse along the
>> way".
>
>Well that's a lot better put than mine.

Actually, I would have to say that systemd is so much better than init
scripts that for me it easily justifies having to live with the
journals hiding the logging away.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:

> You completely missed my point. When I said "usually" and "often" I
> meant the that the very first time you try the .service file you have
> just written, it works.

No I got your point exactly. And when it doesn't - you have this "black box" you can't debug.


> Yes, I can see your point about it being forced on people. But the
> people making that choice to put it into the distros they control have
> actually evaluated systemd and think it is better than what they had
> before.

Not in the case of Debian.
The vote was (under any rational analysis of the strange system they imposed) against having systemd as anything more than an option people could choose to use. But by "creative accounting" it was declared as "lets go all systemd".

> And not to mention, the downright arrogance of a lead developer who has a clear policy of break whatever suits him, whenever it suits him, and leave others to work around whatever it is he's broken this week.
>
> I am afraid I have not been following the politics of systemd, just
> working with it in Ubuntu and a little Debian. I have not had any
> instances of things being broken and my having to fix them after they
> were previously working. I have had it the other way around where
> things did not actually work as documented, so I had to do a
> workaround, and then in a new version the problem was fixed.

You've missed my point. LP is quite happy to declare yet that another bit of the system needs systemd'ising and will go off and break stuff (elsewhere in the system) that had been working fine. Most reports of "you broke X" are met with "but X is a bad way to do it, you'll have to fix the other stuff to work with our new better way". That is the main reason behind Linus removing rights to submit kernel code from some of the systemd developers - he just got fed up with fixing stuff that their "improvements" broke, though he wasn't as diplomatic as that ! https://www.theregister.com/2014/04/05/torvalds_sievers_dust_up/

Note that is is (just) one of the many reasons people dislike systemd. Had certain people been honest up-front then it would never have been adopted by all the distros it has. But certain groups lied - yes I say they lied (whether by act or by omission) because from the outset they always said "it's just an init system, you don't have to use it". But that soon changed (not soon enough to avoid the lock in) when it quickly started on an EEE* cycle of declaring something else broken and needing fixing. And of course, these new "better" replacements are all closely intertwined with systemd in a manner that is the antithesis of the Unix philosophy of small modular tools that can be independently swapped out to use the one that's the best fit for you needs.

* Embrace, Extend, Extinguish


> That is fine, you can make your own choices.

And that's where the argument breaks down. From the start LP and his friends have said that - but they've put a lot of effort into removing those choices. Name a "mainstream" distro that doesn't have systemd as the default (or only) option AND where you can replace it with a different init without the system being terminally broken ?
Debian said they'd keep the choice, but because supporting systemd AND retaining compatibility with anything is now "non trivial" (c.f. the noted above about breaking stuff), Debian is effectively unusable without systemd because too many packages depend on it. It can be done, with a lot of effort and compromises - but that's hardly a "choice" when the option are "it installs" and "it's horribly broken in many ways that you'll have to fix yourself". Many Debian maintainers have gone down the road of simply declaring any problem when not using systemd as "nothing to do with us".

There's some really clever and determined guys behind Devuan - and they struggle at times. Even Devuan has to compromise and every now and then we'll have a "discussion" when someone asks why we can't get rid of libsystemd0. The answer is that it would need more resources than Devuan has to remove all the gratuitous dependencies on it from packages - and keep vigilant for anything being slipped into it.

> But I do think you actually should really try a systemd based distro for a bit, before making that choice.


Well whenever I do decide I want something better than SysVInit, I have choices thanks to Devuan - such as runit or rc which some other Devuan users are running. I might give one of those a go - but systemd just ticks all the wrong boxes for anything I would want to try.


Anyway, this is getting waaay off topic for here. Lets just agree that if you are happy with it then fine - I won't be touching with the proverbial bargepole.


Simon

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, Dec 19, 2020 at 07:04:15PM +0000, Simon Hobson wrote:
> Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:
>
> > You completely missed my point. When I said "usually" and "often" I
> > meant the that the very first time you try the .service file you have
> > just written, it works.
>
> No I got your point exactly. And when it doesn't - you have this "black box" you can't debug.

Case in point is my systemd unit to start mythbackend. It appparently fails.
That's about all I have been able to get out of it. But after the system
boots, systemctl restart mythbackend gets it started just fine.

Now, perhaps I'm missing some dependency. I had thought it was probably the
database, so I added /etc/systemd/system/mythbackend.service.d/local.conf
(I'm using the standard fedora distributed mythbackend.service file) with

[Install]
Requires=mariadb.service
After=mariadb.service

And, just for good measure, I added:

[Service]
Restart=always
RestartSec=3

It would seem that even if it fails after reboot, the Restart directive
would make systemd re-try every 3 seconds. Yet, mythbackend fails to
start up the first time and systemd gives up.

So, I've spent enough time trying to figure out why systemd isn't doing its
job and now I just manually start it.

Progress...

marcus hall
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sat, 19 Dec 2020 14:33:10 -0700, you wrote:

>On Sat, Dec 19, 2020 at 07:04:15PM +0000, Simon Hobson wrote:
>> Stephen Worthington <stephen_agent@jsw.gen.nz> wrote:
>>
>> > You completely missed my point. When I said "usually" and "often" I
>> > meant the that the very first time you try the .service file you have
>> > just written, it works.
>>
>> No I got your point exactly. And when it doesn't - you have this "black box" you can't debug.
>
>Case in point is my systemd unit to start mythbackend. It appparently fails.
>That's about all I have been able to get out of it. But after the system
>boots, systemctl restart mythbackend gets it started just fine.
>
>Now, perhaps I'm missing some dependency. I had thought it was probably the
>database, so I added /etc/systemd/system/mythbackend.service.d/local.conf
>(I'm using the standard fedora distributed mythbackend.service file) with
>
>[Install]
>Requires=mariadb.service
>After=mariadb.service
>
>And, just for good measure, I added:
>
>[Service]
>Restart=always
>RestartSec=3
>
>It would seem that even if it fails after reboot, the Restart directive
>would make systemd re-try every 3 seconds. Yet, mythbackend fails to
>start up the first time and systemd gives up.
>
>So, I've spent enough time trying to figure out why systemd isn't doing its
>job and now I just manually start it.
>
>Progress...
>
>marcus hall

How about giving us a bit more detail about the problem so we can
help? The output into mythbackend.log and the output of "journalctl
-eu mythbackend" would be a start. And "systemctl cat mythbackend",
so we can see exactly what the unit files are.

And how you are running your MythTV - do you have it set up as
accessible to other frontends, or is it using localhost only?

My chief suspects from your description are that mythbackend is
running before either the database is up or networking is up. But in
either case, if it is set to log to syslog or mythbackend.log, there
should be error messages to tell you why it shut down again. Since
you have added the Requires/After for mariadb that pretty much means
it is going to be networking that is not up.

Note that mariadb.service is normally aliased as mysql.service, so
when you are using MariaDB, any Wants/After lines for mysql will also
work with MariaDB. If you check mythbackend.service, you should find
that it has Wants/After=mysql already in it.

Using "Restart=always" can be a big problem when you run up against a
new bug in an update of a program that causes it to crash at startup.
It will then keep on restarting and filling up the logs, until the
logs fill the partition and the system dies. So it is normally best
to set a maximum number of retries. I would suggest that you add
something like:

[Service]
StartLimitBurst=10
StartLimitInterval=60s

to prevent that.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
> How about giving us a bit more detail about the problem so we can
> help? The output into mythbackend.log and the output of "journalctl
> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
> so we can see exactly what the unit files are.

I've pretty much given up trying to get systemd to work. This was a year or
two ago and my recollection matches what Geoff had posted that mythbackend
wasn't starting because mariadb wasn't really ready. That's your main
guess as well. I'm not particularly concerned about that, but rather
why systemd doesn't try to run mythbackend again.

> Using "Restart=always" can be a big problem when you run up against a
> new bug in an update of a program that causes it to crash at startup.
> It will then keep on restarting and filling up the logs, until the
> logs fill the partition and the system dies. So it is normally best
> to set a maximum number of retries. I would suggest that you add
> something like:
>
> [Service]
> StartLimitBurst=10
> StartLimitInterval=60s
>
> to prevent that.

I may try this sometime, although it's addressing an issue of systemd
getting run away restarting mythbackend, which is the opposite to my
issue. The mythtv system seems to get rebooted once or twice a year,
and I've just resigned myself to having to manually start mythbackend
whenever that happens. It's the path of least resistance at this point.

marcus hall
marcus@tuells.org
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: SystemD (Was: Recommended Linux Distro post CentOS) [ In reply to ]
On Wed, 23 Dec 2020 17:10:43 -0700, you wrote:

>On Sun, Dec 20, 2020 at 02:39:17PM +1300, Stephen Worthington wrote:
>> How about giving us a bit more detail about the problem so we can
>> help? The output into mythbackend.log and the output of "journalctl
>> -eu mythbackend" would be a start. And "systemctl cat mythbackend",
>> so we can see exactly what the unit files are.
>
>I've pretty much given up trying to get systemd to work. This was a year or
>two ago and my recollection matches what Geoff had posted that mythbackend
>wasn't starting because mariadb wasn't really ready. That's your main
>guess as well. I'm not particularly concerned about that, but rather
>why systemd doesn't try to run mythbackend again.
>
>> Using "Restart=always" can be a big problem when you run up against a
>> new bug in an update of a program that causes it to crash at startup.
>> It will then keep on restarting and filling up the logs, until the
>> logs fill the partition and the system dies. So it is normally best
>> to set a maximum number of retries. I would suggest that you add
>> something like:
>>
>> [Service]
>> StartLimitBurst=10
>> StartLimitInterval=60s
>>
>> to prevent that.
>
>I may try this sometime, although it's addressing an issue of systemd
>getting run away restarting mythbackend, which is the opposite to my
>issue. The mythtv system seems to get rebooted once or twice a year,
>and I've just resigned myself to having to manually start mythbackend
>whenever that happens. It's the path of least resistance at this point.
>
>marcus hall
>marcus@tuells.org

I installed Fedora 33 in a virtual machine a few days ago, but have
not got MythTV installed properly yet - there seems to be a problem
with the RPMFusion packages and they did not set up the
/etc/mythtv/config.xml file and did not create the database. I did
notice that there is a warning in the mythbackend.service file:

# MariaDB seems to have a systemd related bug and tells systemd that
it is
# ready to accept connections before it really is. If you have this
problem
# try uncommenting the following lines:
# Restart=on-failure
# StartLimitBurst=5
# StartLimitInterval=1

which seems to be about the problem you are experiencing. So I am
guessing that mariadb is telling systemd it is up when it is not yet
able to be connected to via networking - it probably only has its Unix
socket connection up, and networking is still to come up properly.
This does not happen in Ubuntu, so I think this is a Fedora bug. In
any case, my guess is that when mythbackend.service starts
mythbackend, it is unable to connect to the database and shuts down
again. Looking at the mythbackend.log file or the output of
"journalctl -eu mythbackend" should tell if that is the case. If you
then uncomment those lines in mythbackend.service, or better, create
an override file using "sudo systemctl edit mythbackend", then
mythbackend will be restarted up to 5 times fairly rapidly. But if
networking is still not up and it still can not connect to mariadb,
then mythbackend.service will fail and systemd will not keep on trying
to restart mythbackend. I am guessing that the default values for
StartLimitBurst and StartLimitInterval on Fedora are such that the
mythbackend restarts all happen before networking is actually up, so
mythbackend is never restarted after networking is finally up.

So the above settings are not a good workaround at all. It would be
better to use something like this:

Restart=on-failure
RestartSec=5
StartLimitBurst=5
StartLimitInterval=30

What that does is to change the RestartSec from its default of 100 ms,
so that restarts are done only very 5 seconds. Then it increases the
StartLimitInterval to account for that change which means that 5
restarts done at 5 s intervals takes 25 seconds, then mythbackend
needs time to start.

However, as with all race conditions, it is never a good idea to use
delays to fix them. The proper fix would be to get
mythbackend.service to actually wait for networking to be up before it
allows mythbackend to be started. One way to do that is to use my fix
that works on Ubuntu for this when people are using network tuners or
external frontends. If you are not set up to use network tuners or
external frontends, you would just set the ping target to be localhost
(127.0.0.1). I am going to try this out as soon as I can work out how
to get the mythtv packages to install correctly.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org

1 2 3  View All