]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Check if the initscript exists before running it
authorFrancois Marier <francois@debian.org>
Thu, 15 Nov 2007 23:19:39 +0000 (12:19 +1300)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Thu, 15 Nov 2007 23:35:45 +0000 (12:35 +1300)
debian/cron.d

index 1eeaadea174f5cf28f940b099285feb3a6d471d0..2efa2eba96347956f530d539804362230b265745 100644 (file)
@@ -1,4 +1,4 @@
 #
 # Regular cron jobs for the mythtv-status package
 #
-*/10 * * * *   root    /etc/init.d/mythtv-status reload > /dev/null
+*/10 * * * *   root    [ -x /etc/init.d/mythtv-status ] && /etc/init.d/mythtv-status reload > /dev/null