diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services')
4 files changed, 40 insertions, 1 deletions
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..01b775a --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/irexec/run @@ -0,0 +1,14 @@ +#!/bin/sh +exec 2>&1 +export TERM=linux + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/profile + +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 diff --git a/abs/core/runit-scripts/runitscripts/services/mythexpress/run b/abs/core/runit-scripts/runitscripts/services/mythexpress/run index 06e4a1b..05c9b17 100755 --- a/abs/core/runit-scripts/runitscripts/services/mythexpress/run +++ b/abs/core/runit-scripts/runitscripts/services/mythexpress/run @@ -5,4 +5,4 @@ export TERM=linux . /etc/rc.d/functions /usr/bin/svwaitup -s 10 /service/avahi stat_runit "Starting MythExpress" -exec chpst -u http node /usr/mythexpress/app.js +exec chpst -u http node /usr/mythexpress/mythexpress.js diff --git a/abs/core/runit-scripts/runitscripts/services/pwrstatd/run b/abs/core/runit-scripts/runitscripts/services/pwrstatd/run new file mode 100755 index 0000000..3b9c029 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/pwrstatd/run @@ -0,0 +1,8 @@ +#!/bin/sh +exec 2>&1 + +. /etc/rc.conf +. /etc/rc.d/functions + +stat_runit "Starting CyberPower PowerPanel Daemon" +exec /usr/bin/pwrstatd diff --git a/abs/core/runit-scripts/runitscripts/services/xvnc/run b/abs/core/runit-scripts/runitscripts/services/xvnc/run new file mode 100644 index 0000000..c1ef573 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/xvnc/run @@ -0,0 +1,17 @@ +#!/bin/sh +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions + +sv start frontend || exit 1 + +stat_runit "Starting x11vnc" +. /etc/systemconfig +if [ -e /etc/x11vnc.cfg ] +then + . /etc/x11vnc.cfg + exec chpst -umythtv x11vnc $x11vnc_options +else + exec chpst -umythtv x11vnc -forever -rfbport 5902 --passwd $xvncpassword +fi |