From d18de3f6f6b90f0668d8918d6e7542ef12c6fab7 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 12 May 2012 17:10:17 -0500 Subject: runit-scripts: add ncid-client, ncid-server, ncid-logger --- abs/core/runit-scripts/PKGBUILD | 2 +- .../runit-scripts/runitscripts/services/ncid-client/run | 10 ++++++++++ .../runit-scripts/runitscripts/services/ncid-logger/run | 11 +++++++++++ .../runit-scripts/runitscripts/services/ncid-server/run | 15 +++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 abs/core/runit-scripts/runitscripts/services/ncid-client/run create mode 100644 abs/core/runit-scripts/runitscripts/services/ncid-logger/run create mode 100644 abs/core/runit-scripts/runitscripts/services/ncid-server/run diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index f9b379e..9e73603 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=64 +pkgrel=66 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" 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 -- cgit v0.12