Kodi doesn't restart after apt-get dist-upgrade

Title says it all. Brand new install, log here. It’s as if a stop has been issued, rather than a start:

Aug 30 17:09:35 osmc systemd[1]: Stopping media center application...
Aug 30 17:09:36 osmc sudo[517]: pam_unix(sudo:session): session closed for user osmc
Aug 30 17:09:36 osmc systemd[1]: Stopped media center application.
Aug 30 17:09:42 osmc systemd[1]: Stopped media center application.

Might be your danish problem

00:01:01.206 T:1958207488 WARNING: CLangInfo: unable to load language "Danish". Trying to determine matching language addon... 00:01:02.670 T:1754264560 WARNING: CSkinInfo: failed to load skin settings 00:01:03.175 T:1958207488 ERROR: Control 20010 in window 13002 has been asked to focus, but it can't 00:01:47.193 T:1754264560 WARNING: CSkinInfo: failed to load skin settings 00:02:04.526 T:1736438768 ERROR: GetDirectory - Error getting - 14:56:30.843 T:1958207488 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 14:56:30.843 T:1958207488 NOTICE: LoadJpeg: unable to load /usr/share/kodi/addons/service.osmc.settings/resources/skins/Default/media/osmc_preview.jpg 16:56:42.901 T:1958207488 WARNING: CLangInfo: unable to load language "Danish". Trying to determine matching language addon... 16:56:47.981 T:1937765360 ERROR: DoWork - Direct texture file loading failed for resource://resource.images.weathericons.default/.png 17:06:59.647 T:1465906160 ERROR: Previous line repeats 1 times. 17:06:59.648 T:1465906160 ERROR: GetDirectory - Error getting -

Or a serious SD Card failure

So why should language affect kodi restarting? Restarts fine with systemctl.

Sorry might have misunderstood your title. You mean after dist-upgrade in which the mediacenter is upgraded Kodi will not restart. That is normal behaviour.

Aha. So the MyOSMC updater issues a reboot.

Well a reboot when kernel is updated and a mediacenter restart in case mediacenter is updated.
If you do manual updates that is oblivious a manual task to be done.

Maybe. Tvheadend restarts itself in postinst.

It shouldn’t. We should check systemctl is-enabled and start only then.

We don’t restart Kodi when dist-upgraded because it may have been disabled.
We only start it from the GUI updater because that can only be invoked from Kodi.

We do

if systemctl is-enabled tvheadend.service >/dev/null; then systemctl start tvheadend.service; fi

is fine; I thought for a moment we were restarting unconditionally