From 833291890af8e12dd622d0bbd7a3f19a1bf9e0d4 Mon Sep 17 00:00:00 2001 From: wangp Date: Sun, 3 Dec 2017 21:40:23 +1100 Subject: [PATCH] dcron: accept optional service/conf in the dcron runit service. (#9738) --- srcpkgs/dcron/files/dcron/run | 3 ++- srcpkgs/dcron/template | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/dcron/files/dcron/run b/srcpkgs/dcron/files/dcron/run index 7dea919952..dd4f22a28e 100755 --- a/srcpkgs/dcron/files/dcron/run +++ b/srcpkgs/dcron/files/dcron/run @@ -1,2 +1,3 @@ #!/bin/sh -exec dcrond -f 2>&1 +[ -r conf ] && . ./conf +exec dcrond -f $OPTS 2>&1 diff --git a/srcpkgs/dcron/template b/srcpkgs/dcron/template index 8ce2b6c0e4..6eddac4943 100644 --- a/srcpkgs/dcron/template +++ b/srcpkgs/dcron/template @@ -1,7 +1,7 @@ # Template file for 'dcron' pkgname=dcron version=4.5 -revision=31 +revision=32 conf_files="/var/spool/cron/root" provides="cron-daemon-0_1" short_desc="Dillon's lightweight cron daemon"