summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-01-29 18:53:41 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-01-29 18:53:41 (GMT)
commit328b8e929de3d3d53044cc17f107752a4cb2984c (patch)
tree775de92eddbfed9c724b60cc50fb35bc8006b53a /abs
parentbaa62226f566018baefd6b847ab6d63939e38a5b (diff)
downloadlinhes_pkgbuild-328b8e929de3d3d53044cc17f107752a4cb2984c.zip
linhes_pkgbuild-328b8e929de3d3d53044cc17f107752a4cb2984c.tar.gz
linhes_pkgbuild-328b8e929de3d3d53044cc17f107752a4cb2984c.tar.bz2
runit-scripts: add irexec service for runit to manage
Diffstat (limited to 'abs')
-rwxr-xr-xabs/core/runit-scripts/PKGBUILD2
-rwxr-xr-xabs/core/runit-scripts/runit.install6
-rw-r--r--abs/core/runit-scripts/runitscripts/services/irexec/run12
3 files changed, 19 insertions, 1 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index 35620e6..9d119a1 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=runit-scripts
pkgver=8.3
-pkgrel=2
+pkgrel=3
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install
index 4ec6a9f..3cf5036 100755
--- a/abs/core/runit-scripts/runit.install
+++ b/abs/core/runit-scripts/runit.install
@@ -39,6 +39,12 @@ post_upgrade(){
then
rm -r /etc/sv/lircd
fi
+
+ # add irexec
+ if [ -e /service/remotes ] && [ ! -e /service/irexec ]
+ then
+ add_service.sh irexec
+ fi
}
diff --git a/abs/core/runit-scripts/runitscripts/services/irexec/run b/abs/core/runit-scripts/runitscripts/services/irexec/run
new file mode 100644
index 0000000..55653a3
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/irexec/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+exec 2>&1
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+if [[ -z $(pidof lircd) ]]; then
+ stat_runit "No lircd process, can't start irexec"
+else
+ stat_runit "Starting irexec"
+ exec /usr/bin/irexec /etc/lircrc
+fi