[Resolvconf-devel] Bug#318464: minor fix for
/etc/resolvconf/update.d/dnscache
Daniel Kahn Gillmor
dkg-debian.org at fifthhorseman.net
Thu Jun 8 13:46:38 UTC 2006
On June 8, dkg-debian.org at fifthhorseman.net said:
> --- resolvconf-1.35/etc/resolvconf/update.d/dnscache 2006-03-08 12:03:13.000000000 -0500
> +++ /etc/resolvconf/update.d/dnscache 2006-06-08 01:06:20.000000000 -0400
> @@ -94,8 +94,10 @@
>
> for CACHE in $CACHES ; do
> cp "$TMPFILE" "$CACHE/root/servers/@"
> - ## restart the cache if it's already running:
> - [ -x /command/svc ] && /command/svc -t "$CACHE"
> + ## restart the cache if it's already running (try both default locations of svc):
> + ( [ -x /command/svc ] && /command/svc -t "$CACHE" ) || \
> + ( [ -x /usr/bin/svc ] && /usr/bin/svc -t "$CACHE" )
> + fi
> done
>
> rm -f "$TMPFILE"
Gah. that last "fi" line doesn't belong there. Please excuse my
haste in posting a broken patch.
--dkg
More information about the Resolvconf-devel
mailing list