From 49589c284d5b9186ce1d5a6853f481b53a312b34 Mon Sep 17 00:00:00 2001
From: martin <martin@martin-ThinkPad-T410.(none)>
Date: Wed, 1 Jun 2011 15:47:41 -0400
Subject: [PATCH] cc-2055: switch to init.d

-fix some upgrade script issues
---
 install/upgrades/airtime-1.9/airtime-upgrade.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/install/upgrades/airtime-1.9/airtime-upgrade.php b/install/upgrades/airtime-1.9/airtime-upgrade.php
index c2f6388b6..31c262caf 100644
--- a/install/upgrades/airtime-1.9/airtime-upgrade.php
+++ b/install/upgrades/airtime-1.9/airtime-upgrade.php
@@ -22,6 +22,13 @@ exec("airtime-pypo-stop");
 exec("airtime-show-recorder-stop");
 exec("airtime-media-monitor-stop");
 
+exec("svc -dx /etc/service/pypo");
+exec("svc -dx /etc/service/pypo/log");
+exec("svc -dx /etc/service/pypo-liquidsoap");
+exec("svc -dx /etc/service/pypo-liquidsoap/log");
+exec("svc -dx /etc/service/recorder");
+exec("svc -dx /etc/service/recorder/log");
+
 $pathnames = array("/usr/bin/airtime-pypo-start",
                 "/usr/bin/airtime-pypo-stop",
                 "/usr/bin/airtime-show-recorder-start",
@@ -37,6 +44,7 @@ $pathnames = array("/usr/bin/airtime-pypo-start",
                 );
 
 foreach ($pathnames as $pn){
+    echo "Removing $pn";
     exec("rm -rf ".$pn);
 }