summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mediaserv/mediaserv.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-06-15 05:15:54 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-06-15 05:15:54 (GMT)
commit11d14e8983c0efefedc169bb685f4103f44ebb28 (patch)
tree6aa7f2c3a6162eef45598d347faa2a940c0ccb4c /abs/extra-testing/mediaserv/mediaserv.install
parentb760ec370e5f2265ee619e394d44b7fd8b3e2346 (diff)
downloadlinhes_pkgbuild-11d14e8983c0efefedc169bb685f4103f44ebb28.zip
linhes_pkgbuild-11d14e8983c0efefedc169bb685f4103f44ebb28.tar.gz
linhes_pkgbuild-11d14e8983c0efefedc169bb685f4103f44ebb28.tar.bz2
Added run and finish files for mediaserv.
Diffstat (limited to 'abs/extra-testing/mediaserv/mediaserv.install')
-rw-r--r--abs/extra-testing/mediaserv/mediaserv.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
index 6fe6f08..7a26077 100644
--- a/abs/extra-testing/mediaserv/mediaserv.install
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -4,6 +4,8 @@ post_install() {
ln -s /myth/pretty /myth/mediaserv/media/tv
ln -s /myth/video /myth/mediaserv/media/video
chown -R mythtv.mythtv /myth/mediaserv
+ add_service.sh mediaserv
+ sv start mediaserv
}
# arg 1: the new package version
# arg 2: the old package version
@@ -13,6 +15,8 @@ post_upgrade() {
# arg 1: the old package version
post_remove() {
+ sv stop mediaserv
+ remove_service.sh mediaserv
rm -fr /home/mythtv/.mediaserv
rm -fr /myth/mediaserv
}