summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit-scripts/runitscripts/services/ncid/run
blob: 44154c730ebdf0097c196a020120b501e4df31e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
exec 2>&1
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions


which ncid 2>/dev/null >/dev/null

if [ $? = 0 ]
then
	if [ -f /var/service/ncidd/run ]
	then
		sv start ncidd
	fi

	stat_runit "Starting callerid client"
	
	exec /usr/bin/ncid --no-gui --all  --call-prog --program /usr/bin/ncid.py 127.0.0.1 3333
fi