From ebb535ed9f6061105c52564306eb9f46cec6ab31 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 22 Jan 2021 10:45:03 -0500 Subject: [PATCH] duiadns: use touch to update timefile in runit service When on an NFS volume, the shell redirection `: > $TIMEFILE` seems to short-circuit the empty write when the file is already empty, so the mtime is never updated. Using `touch` yields expected behavior. --- srcpkgs/duiadns/files/duiadns/run | 2 +- srcpkgs/duiadns/template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/duiadns/files/duiadns/run b/srcpkgs/duiadns/files/duiadns/run index 3e0c9119c34..c60644335b6 100755 --- a/srcpkgs/duiadns/files/duiadns/run +++ b/srcpkgs/duiadns/files/duiadns/run @@ -16,7 +16,7 @@ if command -v snooze >/dev/null 2>&1; then exec chpst -u _duiadns:_duiadns \ snooze ${PERIOD} -t "${TIMEFILE}" \ - sh -c "/usr/bin/duiadns '${CONFIG}'; : > '${TIMEFILE}'" + sh -c "/usr/bin/duiadns '${CONFIG}'; touch '${TIMEFILE}'" else # Fall back to dumb sleep if snooze is not available # PERIOD is just the number of seconds to sleep in this context diff --git a/srcpkgs/duiadns/template b/srcpkgs/duiadns/template index cb447d33cdf..e124007898e 100644 --- a/srcpkgs/duiadns/template +++ b/srcpkgs/duiadns/template @@ -1,7 +1,7 @@ # Template file for 'duiadns' pkgname=duiadns version=1.1 -revision=2 +revision=3 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-netifaces python3-netaddr python3-requests"