From c58f2ef5aae732c9b25d0709b436e7420d466ddd Mon Sep 17 00:00:00 2001 From: James Meyer Date: Tue, 24 Apr 2012 16:42:36 -0500 Subject: runit-scripts: - changed mythbackend logging to use syslog - as pre-upgrade run a chmod 755 on /etc/sv. This should get rid of the permissions difference error message. Note this is a one-time run --- abs/core/runit-scripts/PKGBUILD | 3 ++- abs/core/runit-scripts/__changelog | 1 + abs/core/runit-scripts/runit.install | 8 ++++++++ abs/core/runit-scripts/runitscripts/services/mythbackend/run | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 abs/core/runit-scripts/__changelog diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index c625da4..fd205aa 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=60 +pkgrel=61 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" @@ -27,5 +27,6 @@ build() { install -m0755 reboot-runit halt-runit logger $startdir/pkg/sbin rsync -a --exclude=.svn services/* $startdir/pkg/etc/sv chmod -R 755 $startdir/pkg/etc/sv + chown -R root:root $startdir/pkg/etc/sv } md5sums=('c79246677d5ffe687bcf6df1b9c2abc2') diff --git a/abs/core/runit-scripts/__changelog b/abs/core/runit-scripts/__changelog new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/abs/core/runit-scripts/__changelog @@ -0,0 +1 @@ + diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install index 213d10f..d77c9aa 100755 --- a/abs/core/runit-scripts/runit.install +++ b/abs/core/runit-scripts/runit.install @@ -57,6 +57,14 @@ post_upgrade(){ } +pre_upgrade(){ + if [ $(vercmp $2 2.1.1-60 ) -lt 0 ] + then + echo "Updating file permissions for /etc/sv to 755" + chmod -R 755 /etc/sv + fi +} + op=$1 shift diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run index 96d21ee..4ff0e9f 100755 --- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run @@ -40,5 +40,5 @@ fi # sleep 10 # # else - exec su mythtv -c "/usr/bin/mythbackend -q --logpath /var/log/mythtv/" + exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" # fi -- cgit v0.12