From f18a3b5b363e9c031d480367545bf2464cbcb226 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sun, 6 Dec 2020 22:53:24 +1300 Subject: [PATCH] Use rm -f in the systemd services file. Thank you to Francois Marier for the patch! --- ChangeLog | 3 +++ debian/changelog | 6 ++++++ debian/mythtv-status.service | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e10c16..47894d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2020-12-06 Andrew Ruthven + Minor update to systemd service file. + 2019-01-29 Andrew Ruthven Release version 1.0.1. diff --git a/debian/changelog b/debian/changelog index 4332085..4cfca92 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mythtv-status (1.0.1-2) UNRELEASED; urgency=medium + + * Update systemd services file to use -f with rm (Closes: 954734). + + -- Andrew Ruthven Sun, 06 Dec 2020 22:51:12 +1300 + mythtv-status (1.0.1-1) unstable; urgency=low * New upstream release. diff --git a/debian/mythtv-status.service b/debian/mythtv-status.service index 882cf8f..84dcd19 100644 --- a/debian/mythtv-status.service +++ b/debian/mythtv-status.service @@ -7,9 +7,9 @@ Documentation=man:mythtv-status [Service] Type=oneshot RemainAfterExit=true -ExecStart=/bin/sh -c "rm /var/lib/mythtv-status/motd_update_disabled || true" +ExecStart=/bin/sh -c "rm -f /var/lib/mythtv-status/motd_update_disabled" ExecStart=/usr/sbin/mythtv-update-motd -ExecStop=/bin/sh -c "touch /var/lib/mythtv-status/motd_update_disabled; rm /run/motd.mythtv-status || true"; +ExecStop=/bin/sh -c "touch /var/lib/mythtv-status/motd_update_disabled; rm -f /run/motd.mythtv-status"; [Install] WantedBy=multi-user.target -- 2.30.2