summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-08-29 22:01:51 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-08-29 22:01:51 (GMT)
commit8b7a42613f47f870793622faad24a6eb773b2a68 (patch)
tree319e45b7afa35d35f1cd6d3e434d51f717f34e59 /abs/mv-core/runit-scripts-mv
parent24adca0d6b4127000e03b53d7caf76bb3a7cab47 (diff)
downloadlinhes_pkgbuild-8b7a42613f47f870793622faad24a6eb773b2a68.zip
linhes_pkgbuild-8b7a42613f47f870793622faad24a6eb773b2a68.tar.gz
linhes_pkgbuild-8b7a42613f47f870793622faad24a6eb773b2a68.tar.bz2
runit-scripts-mv: create certmaster and func log dir if they are not present
Diffstat (limited to 'abs/mv-core/runit-scripts-mv')
-rwxr-xr-xabs/mv-core/runit-scripts-mv/PKGBUILD2
-rwxr-xr-xabs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run10
2 files changed, 11 insertions, 1 deletions
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