From 89381a83e4a0c7abf27bf69fd4048750af151671 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 6 Nov 2012 13:25:11 -0600
Subject: runit-scripts:  add avahi  to mythbackend, mythexpress, remyth

---
 abs/core/runit-scripts/PKGBUILD                              | 2 +-
 abs/core/runit-scripts/runitscripts/services/mythbackend/run | 1 +
 abs/core/runit-scripts/runitscripts/services/mythexpress/run | 1 +
 abs/core/runit-scripts/runitscripts/services/remyth/run      | 2 ++
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index 1d4d3ed..43f5150 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=runit-scripts
 pkgver=2.1.1
-pkgrel=84
+pkgrel=85
 pkgdesc="collection of startup scripts for runit"
 url="http://smarden.org/runit/"
 license="BSD"
diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run
index 152beb4..9ac0c6b 100755
--- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run
+++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run
@@ -6,6 +6,7 @@ export TERM=linux
 . /etc/rc.d/functions
 #wait for mysql
 /sbin/svwaitup -s 10 /service/mysql
+/sbin/svwaitup -s 2 /service/avahi
 
 #profile is here to setup LC_ALL/locale
 MYTH_RUN_STATUS="1"
diff --git a/abs/core/runit-scripts/runitscripts/services/mythexpress/run b/abs/core/runit-scripts/runitscripts/services/mythexpress/run
index 3e58490..d902721 100755
--- a/abs/core/runit-scripts/runitscripts/services/mythexpress/run
+++ b/abs/core/runit-scripts/runitscripts/services/mythexpress/run
@@ -3,6 +3,7 @@ exec 2>&1
 export TERM=linux
 . /etc/rc.conf
 . /etc/rc.d/functions
+/sbin/svwaitup -s 10 /service/avahi
 stat_runit "Starting MythExpress"
 su  http -s/bin/bash -c "node /usr/mythexpress/app.js"
 
diff --git a/abs/core/runit-scripts/runitscripts/services/remyth/run b/abs/core/runit-scripts/runitscripts/services/remyth/run
index 9d6975c..599a8aa 100755
--- a/abs/core/runit-scripts/runitscripts/services/remyth/run
+++ b/abs/core/runit-scripts/runitscripts/services/remyth/run
@@ -3,6 +3,8 @@ exec 2>&1
 export TERM=linux
 . /etc/rc.conf
 . /etc/rc.d/functions
+/sbin/svwaitup -s 10 /service/avahi
+
 stat_runit "Starting ReMyth"
 su  http -s/bin/bash -c "node /usr/remyth/server.js"
 
-- 
cgit v0.12

