diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-01-29 18:53:41 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-01-29 18:53:41 (GMT) |
commit | 328b8e929de3d3d53044cc17f107752a4cb2984c (patch) | |
tree | 775de92eddbfed9c724b60cc50fb35bc8006b53a /abs/core | |
parent | baa62226f566018baefd6b847ab6d63939e38a5b (diff) | |
download | linhes_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/core')
-rwxr-xr-x | abs/core/runit-scripts/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runit.install | 6 | ||||
-rw-r--r-- | abs/core/runit-scripts/runitscripts/services/irexec/run | 12 |
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 |