summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv/runitscripts/services/funcd
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/runitscripts/services/funcd
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/runitscripts/services/funcd')
-rwxr-xr-xabs/mv-core/runit-scripts-mv/runitscripts/services/funcd/run10
1 files changed, 10 insertions, 0 deletions
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