summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2012-05-14 01:38:13 (GMT)
committerCecil <knoppmyth@gmail.com>2012-05-14 01:38:13 (GMT)
commit6fa6efd0975ac9e669ee73fe009c25fe739ac017 (patch)
treeb4e1cdb3e3001a1209fe932b2e26db33b0ed9120 /abs/core/runit-scripts/runitscripts
parente465b073524b59ea2b795d525cf39675857cf2ee (diff)
parentc04f2dfff3a4abbe0e3b4a7247f0001f797b07ac (diff)
downloadlinhes_pkgbuild-6fa6efd0975ac9e669ee73fe009c25fe739ac017.zip
linhes_pkgbuild-6fa6efd0975ac9e669ee73fe009c25fe739ac017.tar.gz
linhes_pkgbuild-6fa6efd0975ac9e669ee73fe009c25fe739ac017.tar.bz2
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rw-r--r--abs/core/runit-scripts/runitscripts/services/ncid-client/run10
-rw-r--r--abs/core/runit-scripts/runitscripts/services/ncid-logger/run11
-rw-r--r--abs/core/runit-scripts/runitscripts/services/ncid-server/run15
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/remotes/run2
4 files changed, 37 insertions, 1 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/ncid-client/run b/abs/core/runit-scripts/runitscripts/services/ncid-client/run
new file mode 100644
index 0000000..80c2af5
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/ncid-client/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Start/stop the ncid-client
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/systemconfig
+stat_runit "Starting caller id client (ncid-client)"
+exec 2>&1
+exec /usr/bin/ncid --no-gui --program /usr/share/ncid/ncid-linhes $dbhost 3333
diff --git a/abs/core/runit-scripts/runitscripts/services/ncid-logger/run b/abs/core/runit-scripts/runitscripts/services/ncid-logger/run
new file mode 100644
index 0000000..56f10d4
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/ncid-logger/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Start/stop the ncid-client
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/systemconfig
+sv start ncid-server
+stat_runit "Starting caller id logger"
+exec 2>&1
+exec /usr/bin/ncid --no-gui --program /usr/bin/ncid-log.py 127.0.0.1 3333
diff --git a/abs/core/runit-scripts/runitscripts/services/ncid-server/run b/abs/core/runit-scripts/runitscripts/services/ncid-server/run
new file mode 100644
index 0000000..126909d
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/ncid-server/run
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# Start/stop the ncid-client
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/systemconfig
+stat_runit "Starting caller id server (ncid)"
+exec 2>&1
+if [ -f /etc/ncid/ncidd-user.conf ]
+then
+ exec /usr/sbin/ncidd -D -C /etc/ncid/ncidd-user.conf
+else
+ exec /usr/sbin/ncidd -D -t /dev/$nciddSerialPort
+fi
diff --git a/abs/core/runit-scripts/runitscripts/services/remotes/run b/abs/core/runit-scripts/runitscripts/services/remotes/run
index 0943a8e..2248322 100755
--- a/abs/core/runit-scripts/runitscripts/services/remotes/run
+++ b/abs/core/runit-scripts/runitscripts/services/remotes/run
@@ -23,7 +23,7 @@ echo "`date` --- run started" >> $LOG
# /etc/runit/lirc.sh
#Anything in that file will be used and the rest of this file is ignored.
-if [ -f /etc/runit/lirc.sh ]
+if [ -x /etc/runit/lirc.sh ]
then
#program must not terminate.
stat_runit "Starting remotes from /etc/runit/lirc.sh"