Hi Francois,

I'm not sure if you're still using mythtv-status, but I'd like to run a
proposed systemd service past you. I have created one which is oneshot,
but in the process I have also added functionality so that it is
possible to use `systemctl stop mythtv-status` to stop the motd being
updated. I have also added direct support for /etc/update-motd.d .

It seems to be working okay on my laptop which is running systemd.

There are a bunch of other features, everything is up in my git repo:
http://git.etc.gen.nz/cgi-bin/gitweb.cgi?p=mythtv-status.git;a=summary
and I'll be looking to upload to Debian in the next couple of days.

Cheers,
Andrew
-- 
Andrew Ruthven, Wellington, New Zealand
and...@etc.gen.nz              | linux.conf.au 2019, Christchurch, NZ
Catalyst Cloud:                |    https://lca2019.linux.org.au/
   https://catalystcloud.nz    |
[Unit]
Description=MythTV Status
After=network.target mythtv-backend.service
Wants=mythtv-backend.service
Documentation=man:mythtv-status

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/sh -c "rm /var/lib/mythtv-status/motd_update_disabled || true"
ExecStart=/usr/sbin/mythtv-update-motd
ExecStop=/bin/sh -c "touch /var/lib/mythtv-status/motd_update_disabled; rm 
/run/motd.mythtv-status || true";

[Install]
WantedBy=multi-user.target

Reply via email to