From 8b7a42613f47f870793622faad24a6eb773b2a68 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 29 Aug 2009 17:01:51 -0500 Subject: runit-scripts-mv: create certmaster and func log dir if they are not present --- abs/mv-core/runit-scripts-mv/PKGBUILD | 2 +- abs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/abs/mv-core/runit-scripts-mv/PKGBUILD b/abs/mv-core/runit-scripts-mv/PKGBUILD index 0d248a8..b27bed3 100755 --- a/abs/mv-core/runit-scripts-mv/PKGBUILD +++ b/abs/mv-core/runit-scripts-mv/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=1.8.0 -pkgrel=302 +pkgrel=304 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run index 8d364db..e4f27d0 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run @@ -3,4 +3,14 @@ export TERM=linux . /etc/rc.conf . /etc/rc.d/functions stat_runit "Starting func" +if [ ! -e /var/log/func ] +then + mkdir -p /var/log/func +fi +if [ ! -e /var/log/certmaster ] +then + mkdir -p /var/log/certmaster +fi + + exec /usr/bin/funcd -- cgit v0.12